]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/io-wq: handle !sysctl_hung_task_timeout_secs
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jan 2026 20:58:03 +0000 (13:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jan 2026 20:58:03 +0000 (13:58 -0700)
commit816095894c0f44aaba4372d92c874121af687596
treedebffb5bb09639711cee0774627b7535db89bb6b
parent1edf0891d0f4a6c186721e41323c9a3b86ceceda
io_uring/io-wq: handle !sysctl_hung_task_timeout_secs

If the hung_task_timeout sysctl is set to 0, then we'll end up busy
looping inside io_wq_exit_workers() after an earlier commit switched to
using wait_for_completion_timeout(). Use the maximum schedule timeout
value for that case.

Fixes: 1f293098a313 ("io_uring/io-wq: don't trigger hung task for syzbot craziness")
Reported-by: Chris Mason <clm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c