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>
Sun, 11 Apr 2021 23:41:57 +0000 (17:41 -0600)
commite83acd7d37d83035f2fe078f656f87418ea2a687
tree0f0dc9006b0a54854aeb948a80239b3bb2110726
parentd434405aaab7d0ebc516b68a8fc4100922d7f5ef
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