+21
−1
Loading
Use the same trick that blk_io_schedule() does to avoid triggering the hung task warning (and potential reboot/panic, depending on system settings), and only wait for half the hung task timeout at the time. If we exceed the default IO_URING_EXIT_WAIT_MAX period where we expect things to certainly have finished unless there's a bug, then throw a WARN_ON_ONCE() for that case. Reported-by:<syzbot+4eb282331cab6d5b6588@syzkaller.appspotmail.com> Tested-by:
<syzbot+4eb282331cab6d5b6588@syzkaller.appspotmail.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>