io_uring: improve ctx hang handling
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Aug 2021 12:04:17 +0000 (13:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Aug 2021 19:52:07 +0000 (13:52 -0600)
commit1dcaa8f7e38ab8ca34e181d98c8024fd0479da17
treec611c6efe06007dffec83206a9c1db4dc7f3cf5b
parent3b716c869c161c0dfc18a69f98fd9e2b6a1b5c76
io_uring: improve ctx hang handling

If io_ring_exit_work() can't get it done in 5 minutes, something is
going very wrong, don't keep spinning at HZ / 20 rate, it doesn't help
and it may take much of CPU time if there is a lot of workers stuck as
such.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9e2d1ca81d569f6bc628af1a42ff6663bff7ce9c.1628471125.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c