Skip to content
Commit edd43f4d authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: fix 'sync' handling of io_fallback_tw()



A previous commit added a 'sync' parameter to io_fallback_tw(), which if
true, means the caller wants to wait on the fallback thread handling it.
But the logic is somewhat messed up, ensure that ctxs are swapped and
flushed appropriately.

Cc: stable@vger.kernel.org
Fixes: dfbe5561 ("io_uring: flush offloaded and delayed task_work on exit")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5e16f1a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment