]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/rw: avoid punting to io-wq directly
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Mar 2024 22:00:28 +0000 (22:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 12:53:02 +0000 (13:53 +0100)
commit71a7e2f5b6670c5ea201210ac8c44158b504de49
treeb4acb1543d9a4f4394fb44454b004340bcc69392
parent57cd0416d4967ec87baa68f5a54bbe6c90fe7526
io_uring/rw: avoid punting to io-wq directly

Commit 6e6b8c62120a22acd8cb759304e4cd2e3215d488 upstream.

kiocb_done() should care to specifically redirecting requests to io-wq.
Remove the hopping to tw to then queue an io-wq, return -EAGAIN and let
the core code io_uring handle offloading.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/413564e550fe23744a970e1783dfa566291b0e6f.1710799188.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 6e6b8c62120a22acd8cb759304e4cd2e3215d488)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/rw.c