io_uring: never run tw and fallback in parallel
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Dec 2022 03:53:33 +0000 (03:53 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Dec 2022 13:47:13 +0000 (06:47 -0700)
commit77e443ab294ca5b88896e8ddab41884948d5519a
tree3e0380c397ddf9a9a6e4f38d669b0f4811b6a325
parentd34b1b0b6779d4f5ee877b53cad90eef0f1cbe34
io_uring: never run tw and fallback in parallel

Once we fallback a tw we want all requests to that task to be given to
the fallback wq so we dont run it in parallel with the last, i.e. post
PF_EXITING, tw run of the task.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/96f4987265c4312f376f206511c6af3e77aaf5ac.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c