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>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commitb288fc01f42d99bf2d4d194ead1f9bdae3c35aea
tree33b20facd6a0ca4d159d003e7346ab60daf87f3f
parent7d41e8543d809c3c900d1212d6ea887eb284b69a
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