io_uring/kbuf: introduce io_kbuf_drop_legacy()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 5 Feb 2025 11:36:48 +0000 (11:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Feb 2025 15:52:15 +0000 (08:52 -0700)
commit3d692b5b37fc755eb35881c0f612ed6f00ac7b11
tree53c8a6a1af9b1f9ea5a70f60b9a5219df73bd9f5
parentac6757c5a032c800f927cef1245b81a3b4fabbce
io_uring/kbuf: introduce io_kbuf_drop_legacy()

io_kbuf_drop() is only used for legacy provided buffers, and so
__io_put_kbuf_list() is never called for REQ_F_BUFFER_RING. Remove the
dead branch out of __io_put_kbuf_list(), rename it into
io_kbuf_drop_legacy() and use it directly instead of io_kbuf_drop().

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