Commit 3a7efd1
io_uring: reinforce cancel on flush during exit
What 84965ff ("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>1 parent 70b2c60 commit 3a7efd1
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8976 | 8976 | | |
8977 | 8977 | | |
8978 | 8978 | | |
| 8979 | + | |
8979 | 8980 | | |
8980 | 8981 | | |
8981 | | - | |
8982 | | - | |
8983 | 8982 | | |
8984 | 8983 | | |
8985 | 8984 | | |
| |||
0 commit comments