io_uring/kbuf: remove legacy kbuf caching
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 5 Feb 2025 11:36:46 +0000 (11:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Feb 2025 15:52:15 +0000 (08:52 -0700)
commit30205b4708dcd3f2823377ae55afb953a05a2672
treee7194bd519f757b66039ccbbd4d244523f8f7641
parenta6fe909acef9535dc56327b1a872466f080be413
io_uring/kbuf: remove legacy kbuf caching

Remove all struct io_buffer caches. It makes it a fair bit simpler.
Apart from from killing a bunch of lines and juggling between lists,
__io_put_kbuf_list() doesn't need ->completion_lock locking now.

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