diff options
| author | Jens Axboe <axboe@kernel.dk> | 2024-10-23 07:14:22 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-10-29 13:43:27 -0600 |
| commit | 1caa00d6b61651e04c04c2b50b3e149f24c6764d (patch) | |
| tree | e31a42a36535ebc10e3ddc7182994f3bf42c1f90 /io_uring/uring_cmd.c | |
| parent | io_uring/rw: get rid of using req->imu (diff) | |
| download | linux-1caa00d6b61651e04c04c2b50b3e149f24c6764d.tar.gz linux-1caa00d6b61651e04c04c2b50b3e149f24c6764d.zip | |
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/uring_cmd.c')
| -rw-r--r-- | io_uring/uring_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c index 58d0b817d6ea..6994f60d7ec7 100644 --- a/io_uring/uring_cmd.c +++ b/io_uring/uring_cmd.c @@ -220,7 +220,7 @@ int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) * being called. This prevents destruction of the mapped buffer * we'll need at actual import time. */ - io_req_set_rsrc_node(req, ctx, 0); + io_req_set_rsrc_node(req, ctx); } ioucmd->cmd_op = READ_ONCE(sqe->cmd_op); |
