Skip to content

Commit 2bc4d7a

Browse files
Chengming Zhouaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e1dd7bc commit 2bc4d7a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

block/blk-mq.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4730,7 +4730,6 @@ static void __blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set,
47304730
__blk_mq_free_map_and_rqs(set, i);
47314731

47324732
set->nr_hw_queues = prev_nr_hw_queues;
4733-
blk_mq_map_queues(&set->map[HCTX_TYPE_DEFAULT]);
47344733
goto fallback;
47354734
}
47364735
blk_mq_map_swqueue(q);

0 commit comments

Comments
 (0)