Re: [PATCH] mm: Decline to manipulate the refcount on a slab page

From
Christoph Hellwig <hch@infradead.org>
Date
2025-03-12 05:47:33
Also in
linux-mm
Reply to
Jakub Kicinski, 2025-03-11
On Tue, Mar 11, 2025 at 11:15:11AM +0100, Jakub Kicinski wrote:
On Mon, 10 Mar 2025 14:35:24 +0000 Matthew Wilcox (Oracle) wrote:
quoted
Long-term, networking needs to stop taking a refcount on the pages that
it uses and rely on the caller to hold whatever references are necessary
to make the memory stable. 
TBH I'm not clear on who is going to fix this.
IIRC we already told NVMe people that sending slab memory over sendpage 
is not well supported. Plus the bug is in BPF integration, judging by
the stack traces (skmsg is a BPF thing). Joy.
slab over sendpage doesn't work because you refuse to take the patches
to make it work by transparently falling back to sendmsg.  It's a giant
pain for all network storage drivers caused by the networking
maintainers.  The ultimate root cause is the fact that networking messes
with the refcounts.
Thread (14 messages) 14 messages, 5 authors, last reply 2025-03-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help