diff options
author | Ming Lei <[email protected]> | 2024-12-06 19:16:07 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-12-06 09:48:46 -0700 |
commit | 22465bbac53c821319089016f268a2437de9b00a (patch) | |
tree | ede441a86ad12f66b693f6852bbe6225776efe98 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 4bf485a7db5d82ddd0f3ad2b299893199090375e (diff) |
blk-mq: move cpuhp callback registering out of q->sysfs_lock
Registering and unregistering cpuhp callback requires global cpu hotplug lock,
which is used everywhere. Meantime q->sysfs_lock is used in block layer
almost everywhere.
It is easy to trigger lockdep warning[1] by connecting the two locks.
Fix the warning by moving blk-mq's cpuhp callback registering out of
q->sysfs_lock. Add one dedicated global lock for covering registering &
unregistering hctx's cpuhp, and it is safe to do so because hctx is
guaranteed to be live if our request_queue is live.
[1] https://lore.kernel.org/lkml/Z04pz3AlvI4o0Mr8@agluck-desk3/
Cc: Reinette Chatre <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Peter Newman <[email protected]>
Cc: Babu Moger <[email protected]>
Reported-by: Luck Tony <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Tested-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions