summaryrefslogtreecommitdiffstats
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-11-06 15:41:17 +0100
committerJens Axboe <axboe@kernel.dk>2023-11-06 15:41:17 +0100
commit0e984ec88da9747549227900e5215c5e6a1b65ae (patch)
tree73150143deffae7fe41655baee54d5f9d03b7a96 /io_uring/opdef.c
parentio_uring/net: ensure socket is marked connected on connect retry (diff)
downloadlinux-0e984ec88da9747549227900e5215c5e6a1b65ae.tar.xz
linux-0e984ec88da9747549227900e5215c5e6a1b65ae.zip
io_uring/rw: add separate prep handler for readv/writev
Rather than sprinkle opcode checks in the generic read/write prep handler, have a separate prep handler for the vectored readv/writev operation. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index 25a3515a177c..0521a26bc6cd 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -66,7 +66,7 @@ const struct io_issue_def io_issue_defs[] = {
.iopoll = 1,
.iopoll_queue = 1,
.vectored = 1,
- .prep = io_prep_rw,
+ .prep = io_prep_rwv,
.issue = io_read,
},
[IORING_OP_WRITEV] = {
@@ -80,7 +80,7 @@ const struct io_issue_def io_issue_defs[] = {
.iopoll = 1,
.iopoll_queue = 1,
.vectored = 1,
- .prep = io_prep_rw,
+ .prep = io_prep_rwv,
.issue = io_write,
},
[IORING_OP_FSYNC] = {