io_uring/kbuf: move locking into io_kbuf_drop()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 5 Feb 2025 11:36:44 +0000 (11:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:34:45 +0000 (05:34 -0700)
commitdd4fbb11e7ccc15dbb197a5bbfb2ca8bfda89fcd
tree7d6ddaa84bd92d09d18728de3443448b62d4619b
parent9afe6847cff78e7f3aa8f4c920265cf298033251
io_uring/kbuf: move locking into io_kbuf_drop()

Move the burden of locking out of the caller into io_kbuf_drop(), that
will help with furher refactoring.

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