]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk-mq: Abort suspend when wakeup events are pending
authorCong Zhang <cong.zhang@oss.qualcomm.com>
Wed, 3 Dec 2025 03:34:21 +0000 (11:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Dec 2025 14:19:26 +0000 (07:19 -0700)
commitc196bf43d706592d8801a7513603765080e495fb
tree0ffaf024c12eae960197bb852424b23768dbcfb6
parent71075d25ca5cae732fb57da065fbf14aeb3bcfc7
blk-mq: Abort suspend when wakeup events are pending

During system suspend, wakeup capable IRQs for block device can be
delayed, which can cause blk_mq_hctx_notify_offline() to hang
indefinitely while waiting for pending request to complete.
Skip the request waiting loop and abort suspend when wakeup events are
pending to prevent the deadlock.

Fixes: bf0beec0607d ("blk-mq: drain I/O when all CPUs in a hctx are offline")
Signed-off-by: Cong Zhang <cong.zhang@oss.qualcomm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c