Commit c93cc9e
committed
io_uring: iopoll requests should also wake task ->in_idle state
If we're freeing/finishing iopoll requests, ensure we check if the task
is in idling in terms of cancelation. Otherwise we could end up waiting
forever in __io_uring_task_cancel() if the task has active iopoll
requests that need cancelation.
Cc: stable@vger.kernel.org # 5.9+
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent a8d13db commit c93cc9e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2270 | 2270 | | |
2271 | 2271 | | |
2272 | 2272 | | |
| 2273 | + | |
| 2274 | + | |
2273 | 2275 | | |
2274 | 2276 | | |
2275 | 2277 | | |
| |||
2288 | 2290 | | |
2289 | 2291 | | |
2290 | 2292 | | |
| 2293 | + | |
| 2294 | + | |
2291 | 2295 | | |
2292 | 2296 | | |
2293 | 2297 | | |
| |||
0 commit comments