io_uring: fix OP_ASYNC_CANCEL across tasks
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Mar 2021 16:25:55 +0000 (16:25 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Mar 2021 16:42:56 +0000 (09:42 -0700)
commit58f99373834151e1ca7edc49bc5578d9d40db099
treecd211fc27afd2ab9be6ce2cded3b03147bdbd8f3
parent521d6a737a31c08dbab204a95cd4fb5bee725f0f
io_uring: fix OP_ASYNC_CANCEL across tasks

IORING_OP_ASYNC_CANCEL tries io-wq cancellation only for current task.
If it fails go over tctx_list and try it out for every single tctx.

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