From: Chengming Zhou Date: Mon, 21 Aug 2023 09:56:01 +0000 (+0800) Subject: blk-mq: delete redundant tagset map update when fallback X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2bc4d7a355a4d617452eaf1b21d6d261194b3667;p=linux.git blk-mq: delete redundant tagset map update when fallback When we increase nr_hw_queues fail, the fallback path will use blk_mq_update_queue_map() to clear and update all maps. Obviously, this line of update of HCTX_TYPE_DEFAULT only is not needed, so delete it. Signed-off-by: Chengming Zhou Reviewed-by: Ming Lei Link: https://lore.kernel.org/r/20230821095602.70742-2-chengming.zhou@linux.dev Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq.c b/block/blk-mq.c index afad6d06eaf7e..22397ba815ca9 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -4730,7 +4730,6 @@ fallback: __blk_mq_free_map_and_rqs(set, i); set->nr_hw_queues = prev_nr_hw_queues; - blk_mq_map_queues(&set->map[HCTX_TYPE_DEFAULT]); goto fallback; } blk_mq_map_swqueue(q);