io_uring: remove io_req_put_rsrc_locked()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 5 Apr 2024 15:50:05 +0000 (16:50 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:26 +0000 (08:10 -0600)
commitc29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a
tree54eed527c821cc6dda73adb1e857dbe37e2f5cc8
parentd9713ad3fa227726a0b4d544c5a4cdd393c1933e
io_uring: remove io_req_put_rsrc_locked()

io_req_put_rsrc_locked() is a weird shim function around
io_req_put_rsrc(). All calls to io_req_put_rsrc() require holding
->uring_lock, so we can just use it directly.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a195bc78ac3d2c6fbaea72976e982fe51e50ecdd.1712331455.git.asml.silence@gmail.com
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/rsrc.h