diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-09-02 23:18:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-21 18:30:43 +0200 |
commit | de97fcb30316410a2c46be102f074a454ecc6cf1 (patch) | |
tree | e5c5c568a2c0c4457aca22efc5349a7a5b792889 /io_uring | |
parent | io_uring: ensure iopoll runs local task work as well (diff) | |
download | linux-de97fcb30316410a2c46be102f074a454ecc6cf1.tar.xz linux-de97fcb30316410a2c46be102f074a454ecc6cf1.zip |
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-r--r-- | io_uring/rw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c index 9187344ae285..da1c0d02aa82 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); |