io_uring: choose right tctx->io_wq for try cancel
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 1 Mar 2021 18:20:45 +0000 (18:20 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Mar 2021 20:11:28 +0000 (13:11 -0700)
commitbf87ce9f29d272891553c4bb9874a04ac40c5551
tree3c86ae39727b69644e3dc2455ed06f22c2bfe3e1
parent1141f3432fceb7e55e505aa1019d8e14b2c2e6e5
io_uring: choose right tctx->io_wq for try cancel

When we cancel SQPOLL, @task in io_uring_try_cancel_requests() will
differ from current. Use the right tctx from passed in @task, and don't
forget that it can be NULL when the io_uring ctx exits.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c