]> 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)
commit25062868086ac8b1b13013d9f802d2bbc564ad3b
tree42e04a457b996b4609606b411f5aa16481d54f7d
parente5a1cb7d3954d3e7bd70b901bba2e6893ff9e85e
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