summaryrefslogtreecommitdiffstats
path: root/io_uring/net.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-10-23 15:14:22 +0200
committerJens Axboe <axboe@kernel.dk>2024-10-29 20:43:27 +0100
commit1caa00d6b61651e04c04c2b50b3e149f24c6764d (patch)
treee31a42a36535ebc10e3ddc7182994f3bf42c1f90 /io_uring/net.c
parentio_uring/rw: get rid of using req->imu (diff)
downloadlinux-1caa00d6b61651e04c04c2b50b3e149f24c6764d.tar.xz
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/net.c')
-rw-r--r--io_uring/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/net.c b/io_uring/net.c
index 18507658a921..fb1f2c37f7d1 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -1261,7 +1261,7 @@ int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
return -EFAULT;
idx = array_index_nospec(idx, ctx->nr_user_bufs);
req->imu = READ_ONCE(ctx->user_bufs[idx]);
- io_req_set_rsrc_node(notif, ctx, 0);
+ io_req_set_rsrc_node(notif, ctx);
}
if (req->opcode == IORING_OP_SEND_ZC) {