]> www.infradead.org Git - users/hch/misc.git/commit
block: move hctx cpuhp add/del out of queue freezing
authorMing Lei <ming.lei@redhat.com>
Mon, 5 May 2025 14:18:02 +0000 (22:18 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:43:43 +0000 (07:43 -0600)
commit7ed7fa561c357d1ff0d5938446662b2ea4b26bb3
treefbbd46494382241f91ad956e560600e419fcd798
parent0a47d2b433ad275236d625b9f09c6d3672329712
block: move hctx cpuhp add/del out of queue freezing

Move hctx cpuhp add/del out of queue freezing for not connecting freeze
lock with cpuhp locks, then lockdep warning can be avoided.

This way is safe because both needn't queue to be frozen and scheduler
switch isn't allowed, with same reason for moving hctx debugfs/sysfs
register out of queue freeze.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250505141805.2751237-25-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c