summaryrefslogtreecommitdiff
path: root/io_uring/rw.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2024-03-08 16:55:57 +0300
committerJens Axboe <axboe@kernel.dk>2024-03-08 17:58:23 +0300
commite0e4ab52d17096d96c21a6805ccd424b283c3c6d (patch)
tree9d97edbb6179d35279047cce542c89daa58381c1 /io_uring/rw.c
parent3a96378e22cc46c7c49b5911f6c8631527a133a9 (diff)
downloadlinux-e0e4ab52d17096d96c21a6805ccd424b283c3c6d.tar.xz
io_uring: refactor DEFER_TASKRUN multishot checks
We disallow DEFER_TASKRUN multishots from running by io-wq, which is checked by individual opcodes in the issue path. We can consolidate all it in io_wq_submit_work() at the same time moving the checks out of the hot path. Suggested-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/e492f0f11588bb5aa11d7d24e6f53b7c7628afdb.1709905727.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.c')
-rw-r--r--io_uring/rw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c
index 5651a5ad4e11..47e097ab5d7e 100644
--- a/io_uring/rw.c
+++ b/io_uring/rw.c
@@ -933,8 +933,6 @@ int io_read_mshot(struct io_kiocb *req, unsigned int issue_flags)
*/
if (!io_file_can_poll(req))
return -EBADFD;
- if (issue_flags & IO_URING_F_IOWQ)
- return -EAGAIN;
ret = __io_read(req, issue_flags);