aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/rw.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-09-02 15:18:05 -0600
committerJens Axboe <axboe@kernel.dk>2022-09-21 10:30:43 -0600
commitde97fcb30316410a2c46be102f074a454ecc6cf1 (patch)
treee5c5c568a2c0c4457aca22efc5349a7a5b792889 /io_uring/rw.c
parentdac6a0eae793f53c62a0f83d9f5423293a7845c4 (diff)
downloadlinux-de97fcb30316410a2c46be102f074a454ecc6cf1.tar.gz
fs: add batch and poll flags to the uring_cmd_iopoll() handler
We need the poll_flags to know how to poll for the IO, and we should have the batch structure in preparation for supporting batched completions with iopoll. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.c')
-rw-r--r--io_uring/rw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c
index 9187344ae2857..da1c0d02aa823 100644
--- a/io_uring/rw.c
+++ b/io_uring/rw.c
@@ -1015,7 +1015,8 @@ int io_do_iopoll(struct io_ring_ctx *ctx, bool force_nonspin)
struct io_uring_cmd *ioucmd;
ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
- ret = file->f_op->uring_cmd_iopoll(ioucmd);
+ ret = file->f_op->uring_cmd_iopoll(ioucmd, &iob,
+ poll_flags);
} else {
struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw);