]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk-mq: skip CPU offline notify on unmapped hctx
authorCong Zhang <cong.zhang@oss.qualcomm.com>
Tue, 30 Dec 2025 09:17:05 +0000 (17:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Dec 2025 16:02:22 +0000 (09:02 -0700)
commit10845a105bbcb030647a729f1716c2309da71d33
tree33659c2f16911eaa9a2af0c8fb80c040e8213173
parenta2ce133969175d36d708b7c76536b375d0522e53
blk-mq: skip CPU offline notify on unmapped hctx

If an hctx has no software ctx mapped, blk_mq_map_swqueue() never
allocates tags and leaves hctx->tags NULL. The CPU hotplug offline
notifier can still run for that hctx, return early since hctx cannot
hold any requests.

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