]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:37 +0000 (10:14 +0100)
commit9eb1ee1f2acbf6359d9b63eb739dc4b7cf08c31e
tree113052449b698dabeebc66614a5061e0a4ca85f9
parent29abf51fdf77fb8fe079401aea27cdd20479f661
blk-mq: skip CPU offline notify on unmapped hctx

[ Upstream commit 10845a105bbcb030647a729f1716c2309da71d33 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c