]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: refactor DEFER_TASKRUN multishot checks
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 8 Mar 2024 13:55:57 +0000 (13:55 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Mar 2024 14:58:23 +0000 (07:58 -0700)
commite0e4ab52d17096d96c21a6805ccd424b283c3c6d
tree9d97edbb6179d35279047cce542c89daa58381c1
parent3a96378e22cc46c7c49b5911f6c8631527a133a9
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>
io_uring/io_uring.c
io_uring/net.c
io_uring/rw.c