io_uring: avoid taking ctx refs for task-cancel
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:09 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 16:24:16 +0000 (10:24 -0600)
commitefbdd9a4bce97855538559911a05a3a99e73feb3
tree9201adf4525a7de5d0ff10a71d34295b0801fc74
parent34e88a7d1b2b734117a08e79ba348d7a5dec05ae
io_uring: avoid taking ctx refs for task-cancel

Don't bother to take a ctx->refs for io_req_task_cancel() because it
take uring_lock before putting a request, and the context is promised to
stay alive until unlock happens.

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