]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc6750e36b8c49b566049314b01b1ef3ae04cf44
tree475e92df72996c3077abb8c0ab41e243dc2b85bc
parent00b92560b2d341885666faa1dc0803c1064929b4
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