aboutsummaryrefslogtreecommitdiff
path: root/io_uring/rsrc.h
diff options
context:
space:
mode:
authorGravatar Pavel Begunkov <asml.silence@gmail.com> 2024-04-05 16:50:05 +0100
committerGravatar Jens Axboe <axboe@kernel.dk> 2024-04-15 08:10:26 -0600
commitc29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a (patch)
tree54eed527c821cc6dda73adb1e857dbe37e2f5cc8 /io_uring/rsrc.h
parentio_uring: remove async request cache (diff)
downloadlinux-c29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a.tar.gz
linux-c29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a.tar.bz2
linux-c29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a.zip
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>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r--io_uring/rsrc.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index 83c079a707f8..c032ca3436ca 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -83,12 +83,6 @@ static inline void io_put_rsrc_node(struct io_ring_ctx *ctx, struct io_rsrc_node
io_rsrc_node_ref_zero(node);
}
-static inline void io_req_put_rsrc_locked(struct io_kiocb *req,
- struct io_ring_ctx *ctx)
-{
- io_put_rsrc_node(ctx, req->rsrc_node);
-}
-
static inline void io_charge_rsrc_node(struct io_ring_ctx *ctx,
struct io_rsrc_node *node)
{