]> www.infradead.org Git - users/hch/block.git/commitdiff
block: don't remove hctx debugfs dir from blk_mq_exit_queue
authorMing Lei <ming.lei@redhat.com>
Sat, 22 Jan 2022 11:10:47 +0000 (19:10 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Mar 2022 14:44:52 +0000 (16:44 +0200)
The queue's top debugfs dir is removed from blk_release_queue(), so all
hctx's debugfs dirs are removed from there. Given blk_mq_exit_queue()
is only called from blk_cleanup_queue(), it isn't necessary to remove
hctx debugfs from blk_mq_exit_queue().

So remove it from blk_mq_exit_queue().

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-mq.c

index 62526bcea1e16611bf3b400b7b7edd411be5fa62..4b0224ac7ff42446b7da156bdee1425d92b64e9c 100644 (file)
@@ -3429,7 +3429,6 @@ static void blk_mq_exit_hw_queues(struct request_queue *q,
        queue_for_each_hw_ctx(q, hctx, i) {
                if (i == nr_queue)
                        break;
-               blk_mq_debugfs_unregister_hctx(hctx);
                blk_mq_exit_hctx(q, set, hctx, i);
        }
 }