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: open code __io_put_kbuf()

__io_put_kbuf() is a trivial wrapper, open code it into
__io_put_kbufs().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9dc17380272b48d56c95992c6f9eaacd5546e1d3.1738724373.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
e150e70f 13ee854e

+1 -8
-5
io_uring/kbuf.c
··· 68 68 return true; 69 69 } 70 70 71 - void __io_put_kbuf(struct io_kiocb *req, int len, unsigned issue_flags) 72 - { 73 - __io_put_kbuf_list(req, len); 74 - } 75 - 76 71 static void __user *io_provided_buffer_select(struct io_kiocb *req, size_t *len, 77 72 struct io_buffer_list *bl) 78 73 {
+1 -3
io_uring/kbuf.h
··· 74 74 int io_unregister_pbuf_ring(struct io_ring_ctx *ctx, void __user *arg); 75 75 int io_register_pbuf_status(struct io_ring_ctx *ctx, void __user *arg); 76 76 77 - void __io_put_kbuf(struct io_kiocb *req, int len, unsigned issue_flags); 78 - 79 77 bool io_kbuf_recycle_legacy(struct io_kiocb *req, unsigned issue_flags); 80 78 81 79 struct io_mapped_region *io_pbuf_get_region(struct io_ring_ctx *ctx, ··· 192 194 if (!__io_put_kbuf_ring(req, len, nbufs)) 193 195 ret |= IORING_CQE_F_BUF_MORE; 194 196 } else { 195 - __io_put_kbuf(req, len, issue_flags); 197 + __io_put_kbuf_list(req, len); 196 198 } 197 199 return ret; 198 200 }