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)
commitb5bb3a24f69da92e0ec2a301452364333e45be03
treedafb21ad1a2543c98cf66393d3c7631012c14360
parentbaf186c4d345f5a105e63df01100936ad622f369
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