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)
commit67c4d9e693e3bb7fb968af24e3584f821a78ba56
tree42e04a457b996b4609606b411f5aa16481d54f7d
parent44e728b8aae0bb6d4229129083974f9dea43f50b
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