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

From
Christoph Hellwig <hch@infradead.org>
Date
2025-03-13 08:44:42
Also in
linux-mm
Reply to
Hannes Reinecke, 2025-03-13
On Thu, Mar 13, 2025 at 09:34:39AM +0100, Hannes Reinecke wrote:
nvmf_connect_command_prep() returns a kmalloced buffer.
Yes.
That is stored in a bvec in _nvme_submit_sync_cmd() via
blk_mq_rq_map_kern()->bio_map_kern().
And from that point on we are dealing with bvecs (iterators
and all), and losing the information that the page referenced
is a slab page.
Yes. But so does every other consomer of the block layer that passes
slab memory, of which there are quite a few.  Various internal scsi
and nvme command come to mind, as does the XFS buffer cache.
The argument is that the network layer expected a kvec iterator
when slab pages are referred to, not a bvec iterator.
It doesn't.  It just doesn't want you to use ->sendpage.
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