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 16:46:05 +0000 (09:46 -0700)
commit4db61a6c7adc4f2a7774383fcf103253594e9948
treed9f543d8597d6b941965cba3d9383bb430d2bb3d
parentf52e06c8e8a1e42a83329bb898985b851821ca99
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