summaryrefslogtreecommitdiff
path: root/io_uring/rsrc.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-10-23 07:14:22 -0600
committerJens Axboe <axboe@kernel.dk>2024-10-29 13:43:27 -0600
commit1caa00d6b61651e04c04c2b50b3e149f24c6764d (patch)
treee31a42a36535ebc10e3ddc7182994f3bf42c1f90 /io_uring/rsrc.h
parent003f82b58c99146dfb0c9ce1ee7ed59bc572959b (diff)
io_uring: remove 'issue_flags' argument for io_req_set_rsrc_node()
All callers already hold the ring lock and hence are passing '0', remove the argument and the conditional locking that it controlled. Suggested-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r--io_uring/rsrc.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index 8ed588036210..c50d4be4aa6d 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -107,14 +107,10 @@ static inline void __io_req_set_rsrc_node(struct io_kiocb *req,
}
static inline void io_req_set_rsrc_node(struct io_kiocb *req,
- struct io_ring_ctx *ctx,
- unsigned int issue_flags)
+ struct io_ring_ctx *ctx)
{
- if (!req->rsrc_node) {
- io_ring_submit_lock(ctx, issue_flags);
+ if (!req->rsrc_node)
__io_req_set_rsrc_node(req, ctx);
- io_ring_submit_unlock(ctx, issue_flags);
- }
}
static inline u64 *io_get_tag_slot(struct io_rsrc_data *data, unsigned int idx)