]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:23:35 +0000 (11:23 +0200)
commitf0194e4a9e59627838dfdf8214d1734394c3783a
treec0b9157be9ec1e19abf12c41eedaabcd85da6c8c
parentfba8ca3e6f608b92e54271fdbd3ce569361939fc
io_uring: refactor DEFER_TASKRUN multishot checks

Commit e0e4ab52d17096d96c21a6805ccd424b283c3c6d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c
io_uring/net.c
io_uring/rw.c