block: io wait hang check helper
authorKeith Busch <kbusch@kernel.org>
Fri, 23 Feb 2024 15:59:09 +0000 (07:59 -0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 24 Feb 2024 19:46:46 +0000 (12:46 -0700)
commit0eb4db4706603db09644ec3bc9bb0d63ea5d326c
tree4f26a8b78b34f487c7c45cd64d68ccf7e9adc971
parent76a27e1b53b94b5a23c221434146fda3e9d8d8e0
block: io wait hang check helper

This is the same in two places, and another will be added soon. Create a
helper for it.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20240223155910.3622666-4-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-mq.c
block/blk.h