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)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Mar 2024 14:50:52 +0000 (08:50 -0600)
commit89e9482d82474a4fae78d27ecd5965a5863c3d92
tree3701d2a3c6e947dcdf1e03b9e49f617d9b3d1d68
parent2dd16d2cda27ad1541c9c71bbcb5b06cc1be9c53
io_uring/rw: avoid punting to io-wq directly

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>
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/rw.c