On Tue, Jul 28, 2020 at 06:28:25PM +0200, Greg KH wrote:
> On Mon, Jul 27, 2020 at 03:44:34PM -0700, Jonathan Lemon wrote:
> > From: Jonathan Lemon <b...@fb.com>
> > 
> > netgpu pages will always have a refcount of at least one (held by
> > the netgpu module).  If the skb is marked as containing netgpu ZC
> > pages, recycle them back to netgpu.
> 
> What???

Yes, this is page refcount elevation.  ZONE_DEVICE pages do this also,
which is hidden in put_devmap_managed_page().  I would really like to
find a generic solution for this, as it has come up in other cases as
well (page recycling for page_pool, for example).  Some way to say "this
page is different", and a separate routine to release refcounts.

Can we have a discussion on this possibility?
-- 
Jonathan

Reply via email to