io_uring: update sq_thread_idle after ctx deleted
authorHao Xu <haoxu@linux.alibaba.com>
Sat, 24 Apr 2021 09:26:20 +0000 (17:26 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Apr 2021 16:14:25 +0000 (10:14 -0600)
commit2b4ae19c6d4842dc24d9e0cbec5c98d2766643d5
tree79d2f3c28041d79a3ead766a7ea2a5ca33427e4b
parent634d00df5e1cfc4a707b629a814bd607f726bd52
io_uring: update sq_thread_idle after ctx deleted

we shall update sq_thread_idle anytime we do ctx deletion from ctx_list

Fixes:734551df6f9b ("io_uring: fix shared sqpoll cancellation hangs")

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/1619256380-236460-1-git-send-email-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c