]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: warn when ring exit takes too long
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 6 Mar 2021 11:02:16 +0000 (11:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Mar 2021 21:12:43 +0000 (14:12 -0700)
commit811585fe339200dfdf50b70fcb9fb45586e5ba27
treedafb21ad1a2543c98cf66393d3c7631012c14360
parent8a54258c83e1c0e80e8e81e8b2a0caac5c16c7d9
io_uring: warn when ring exit takes too long

We use system_unbound_wq to run io_ring_exit_work(), so it's hard to
monitor whether removal hang or not. Add WARN_ONCE to catch hangs.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c