blk-mq: delete redundant tagset map update when fallback
authorChengming Zhou <zhouchengming@bytedance.com>
Mon, 21 Aug 2023 09:56:01 +0000 (17:56 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Aug 2023 14:58:05 +0000 (08:58 -0600)
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 <zhouchengming@bytedance.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230821095602.70742-2-chengming.zhou@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c

index afad6d0..22397ba 100644 (file)
@@ -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);