Re: [PATCH v2] mm, page_pool: introduce a new page type for page pool in page type

From: Byungchul Park
Date: Mon Jul 28 2025 - 20:51:44 EST


On Mon, Jul 28, 2025 at 07:36:54PM +0100, Pavel Begunkov wrote:
> On 7/28/25 06:27, Byungchul Park wrote:
> > Changes from v1:
> > 1. Rebase on linux-next.
>
> net-next is closed, looks like until August 11.
>
> > 2. Initialize net_iov->pp = NULL when allocating net_iov in
> > net_devmem_bind_dmabuf() and io_zcrx_create_area().
> > 3. Use ->pp for net_iov to identify if it's pp rather than
> > always consider net_iov as pp.
> > 4. Add Suggested-by: David Hildenbrand <david@xxxxxxxxxx>.
>
> Oops, looks you killed my suggested-by tag now. Since it's still
> pretty much my diff spliced with David's suggestions, maybe
> Co-developed-by sounds more appropriate. Even more so goes for
> the second patch getting rid of __netmem_clear_lsb().

Sure. I will.

Byungchul

> Looks fine, just one comment below.
>
> ...> diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
> > index 100b75ab1e64..34634552cf74 100644
> > --- a/io_uring/zcrx.c
> > +++ b/io_uring/zcrx.c
> > @@ -444,6 +444,7 @@ static int io_zcrx_create_area(struct io_zcrx_ifq *ifq,
> > area->freelist[i] = i;
> > atomic_set(&area->user_refs[i], 0);
> > niov->type = NET_IOV_IOURING;
> > + niov->pp = NULL;
>
> It's zero initialised, you don't need it.
>
> And a friendly reminder, please never send patches modifying a
> subsystem without CC'ing it, especially kept in another tree.
> Sure, you CC'ed me, but it's easy to lose.
>
> --
> Pavel Begunkov
>