]> 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>
Tue, 8 Mar 2022 05:28:30 +0000 (06:28 +0100)
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 6fd0b0f6525146f5275dc61e08bc67116dd25772..b38e125a710c907db651b0ef580d5339ec108727 100644 (file)
@@ -3434,7 +3434,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);
        }
 }