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>
Wed, 5 Feb 2025 15:52:15 +0000 (08:52 -0700)
commit615da6b1d03b53efea22faaab3f1a3d21888ed72
tree6ba90330d56856bf430999dba38034c032b18b8e
parent6ad0e0db0d81c3e5ddf3b7ce84cb937590f724a3
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