io_uring: unify SQPOLL and user task cancellations
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 01:36:23 +0000 (02:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:13 +0000 (08:23 -0600)
commit78cc687be9c5420d743346f78bb8af9d59a903f9
treeb2a20532549eca05fbc9186455017ab1b9c98b0b
parent09899b19155a152f3ff4eb5c203232175d630fbc
io_uring: unify SQPOLL and user task cancellations

Merge io_uring_cancel_sqpoll() and __io_uring_cancel() as it's easier to
have a conditional ctx traverse inside than keeping them in sync.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/adfe24d6dad4a3883a40eee54352b8b65ac851bb.1623634181.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c