summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2023-08-21 12:56:01 +0300
committerJens Axboe <axboe@kernel.dk>2023-08-22 17:58:05 +0300
commit2bc4d7a355a4d617452eaf1b21d6d261194b3667 (patch)
tree3fa91d109475be081c980297e749b3543ac9df91 /block
parente1dd7bc93029024af5688253b0c05181d6e01f8e (diff)
downloadlinux-2bc4d7a355a4d617452eaf1b21d6d261194b3667.tar.xz
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 <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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index afad6d06eaf7..22397ba815ca 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);