Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/kbuf: check for ring provided buffers first in recycling

This is the most likely of paths if a provided buffer is used, so offer
it up first and push the legacy buffers to later.

Link: https://lore.kernel.org/r/20250821020750.598432-14-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -2
+2 -2
io_uring/kbuf.h
··· 129 129 { 130 130 if (req->flags & REQ_F_BL_NO_RECYCLE) 131 131 return false; 132 - if (req->flags & REQ_F_BUFFER_SELECTED) 133 - return io_kbuf_recycle_legacy(req, issue_flags); 134 132 if (req->flags & REQ_F_BUFFER_RING) 135 133 return io_kbuf_recycle_ring(req, bl); 134 + if (req->flags & REQ_F_BUFFER_SELECTED) 135 + return io_kbuf_recycle_legacy(req, issue_flags); 136 136 return false; 137 137 } 138 138