io_uring: iopoll requests should also wake task ->in_idle state
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Jan 2021 18:52:11 +0000 (11:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 16 Jan 2021 19:13:59 +0000 (12:13 -0700)
commitc93cc9e16d88e0f5ea95d2d65d58a8a4dab258bc
tree475e92df72996c3077abb8c0ab41e243dc2b85bc
parenta8d13dbccb137c46fead2ec1a4f1fbc8cfc9ea91
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>
fs/io_uring.c