commit | f6edbabb8359798c541b0776616c5eab3a840d3d | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Fri Nov 06 13:00:26 2020 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Dec 09 12:04:00 2020 -0700 |
tree | 97fc9338ff86d0e7c8a0b6eedaa3e49b38dd83bd | |
parent | 6b81928d4ca8668513251f9c04cdcb9d38ef51c7 [diff] |
io_uring: always batch cancel in *cancel_files() Instead of iterating over each request and cancelling it individually in io_uring_cancel_files(), try to cancel all matching requests and use ->inflight_list only to check if there anything left. In many cases it should be faster, and we can reuse a lot of code from task cancellation. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>