diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-08-21 12:56:02 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-22 17:58:06 +0300 |
commit | 7222657e51b5626d10154b3e48ad441c33b5da96 (patch) | |
tree | 1cd2f2e35cb1154c3d2a460fe49d73c518c5e555 /block/holder.c | |
parent | 2bc4d7a355a4d617452eaf1b21d6d261194b3667 (diff) | |
download | linux-7222657e51b5626d10154b3e48ad441c33b5da96.tar.xz |
blk-mq: prealloc tags when increase tagset nr_hw_queues
Just like blk_mq_alloc_tag_set(), it's better to prepare all tags before
using to map to queue ctxs in blk_mq_map_swqueue(), which now have to
consider empty set->tags[].
The good point is that we can fallback easily if increasing nr_hw_queues
fail, instead of just mapping to hctx[0] when fail in blk_mq_map_swqueue().
And the fallback path already has tags free & clean handling, so all
is good.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230821095602.70742-3-chengming.zhou@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/holder.c')
0 files changed, 0 insertions, 0 deletions