]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: batch cancel in io_uring_cancel_files()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Jun 2020 07:24:05 +0000 (10:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jun 2020 14:51:34 +0000 (08:51 -0600)
commit819a32be0f03cbeba0c8042e896c8b8accee8252
tree42e04a457b996b4609606b411f5aa16481d54f7d
parente3c66cbbf12caafda0d4ae73151e8fa793f45b5c
io_uring: batch cancel in io_uring_cancel_files()

Instead of waiting for each request one by one, first try to cancel all
of them in a batched manner, and then go over inflight_list/etc to reap
leftovers.

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