io_uring: fixup fallback work case
authorJens Axboe <axboe@kernel.dk>
Mon, 15 Feb 2021 21:21:14 +0000 (14:21 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Feb 2021 21:21:14 +0000 (14:21 -0700)
commit640631b614765704eccd6725681fd6159e347eff
tree294d125b832f3b1db8559de19e30c705cce3a3eb
parent35e766956c4f26c5f976e115c32968507246df95
io_uring: fixup fallback work case

For fallback work, we used to grab the io-wq manager task. But now that
they are tied more closely to the actual task, just have a callback list
in the ctx. Then we can run it at exit time, which is the only time that
adding task_work would fail for us.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c