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/rw: recycle buffers manually for non-mshot reads

The mshot side of reads already does this, but the regular read path
does not. This leads to needing recycling checks sprinkled in various
spots in the "go async" path, like arming poll. In preparation for
getting rid of those, ensure that read recycles appropriately.

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

+2
+2
io_uring/rw.c
··· 1026 1026 if (ret >= 0) 1027 1027 return kiocb_done(req, ret, issue_flags); 1028 1028 1029 + if (req->flags & REQ_F_BUFFERS_COMMIT) 1030 + io_kbuf_recycle(req, req->buf_list, issue_flags); 1029 1031 return ret; 1030 1032 } 1031 1033