]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blk-mq: register cpuhp callback after hctx is added to xarray table
authorMing Lei <ming.lei@redhat.com>
Fri, 6 Dec 2024 11:16:06 +0000 (19:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:30:52 +0000 (10:30 +0100)
commit45883477b19e7bc90b72265e413d46fab895f2ae
treef1137d7c551ac45c1165d1180dd9ac5f49d89e4a
parent9e323f856cf4963120e0e3892a84ef8bd764a0e4
blk-mq: register cpuhp callback after hctx is added to xarray table

[ Upstream commit 4bf485a7db5d82ddd0f3ad2b299893199090375e ]

We need to retrieve 'hctx' from xarray table in the cpuhp callback, so the
callback should be registered after this 'hctx' is added to xarray table.

Cc: Reinette Chatre <reinette.chatre@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Peter Newman <peternewman@google.com>
Cc: Babu Moger <babu.moger@amd.com>
Cc: Luck Tony <tony.luck@intel.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20241206111611.978870-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c