diff options
author | Pavel Begunkov | 2021-01-28 23:23:42 +0000 |
---|---|---|
committer | Jens Axboe | 2021-01-28 17:04:24 -0700 |
commit | 3a7efd1ad269ccaf9c1423364d97c9661ba6dafa (patch) | |
tree | aaf8c483c0db69204c4dfa9bbb1d12a2ae5d0ba7 /.cocciconfig | |
parent | 70b2c60d3797bffe182dddb9bb55975b9be5889a (diff) |
io_uring: reinforce cancel on flush during exit
What 84965ff8a84f0 ("io_uring: if we see flush on exit, cancel related tasks")
really wants is to cancel all relevant REQ_F_INFLIGHT requests reliably.
That can be achieved by io_uring_cancel_files(), but we'll miss it
calling io_uring_cancel_task_requests(files=NULL) from io_uring_flush(),
because it will go through __io_uring_cancel_task_requests().
Just always call io_uring_cancel_files() during cancel, it's good enough
for now.
Cc: stable@vger.kernel.org # 5.9+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions