io_uring/kbuf: simplify __io_put_kbuf
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 5 Feb 2025 11:36:45 +0000 (11:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:34:45 +0000 (05:34 -0700)
commitdc39fb1093ea33019f192c93b77b863282e10162
tree88c99289c9780a6e90578148709ba62edb29d076
parentdd4fbb11e7ccc15dbb197a5bbfb2ca8bfda89fcd
io_uring/kbuf: simplify __io_put_kbuf

As a preparation step remove an optimisation from __io_put_kbuf() trying
to use the locked cache. With that __io_put_kbuf_list() is only used
with ->io_buffers_comp, and we remove the explicit list argument.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1b7f1394ec4afc7f96b35a61f5992e27c49fd067.1738724373.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c
io_uring/kbuf.h