Thread (35 messages) 35 messages, 5 authors, 2020-07-28

Re: [RFC PATCH v2 11/21] core/skbuff: add page recycling logic for netgpu pages

From: Jonathan Lemon <hidden>
Date: 2020-07-28 18:00:45

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:
quoted
From: Jonathan Lemon <redacted>

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help