Commit 0b5cd6c
io_uring: fix skipping disabling sqo on exec
If there are no requests at the time __io_uring_task_cancel() is called,
tctx_inflight() returns zero and and it terminates not getting a chance
to go through __io_uring_files_cancel() and do
io_disable_sqo_submit(). And we absolutely want them disabled by the
time cancellation ends.
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: d9d0521 ("io_uring: stop SQPOLL submit on creator's death")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 4325cb4 commit 0b5cd6c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9085 | 9085 | | |
9086 | 9086 | | |
9087 | 9087 | | |
| 9088 | + | |
| 9089 | + | |
| 9090 | + | |
| 9091 | + | |
9088 | 9092 | | |
9089 | 9093 | | |
9090 | 9094 | | |
| |||
0 commit comments