aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorChengming Zhou <[email protected]>2023-08-21 09:56:02 +0000
committerJens Axboe <[email protected]>2023-08-22 14:58:06 +0000
commit7222657e51b5626d10154b3e48ad441c33b5da96 (patch)
tree1cd2f2e35cb1154c3d2a460fe49d73c518c5e555 /tools/perf/scripts/python/futex-contention.py
parentblk-mq: delete redundant tagset map update when fallback (diff)
downloadkernel-7222657e51b5626d10154b3e48ad441c33b5da96.tar.gz
kernel-7222657e51b5626d10154b3e48ad441c33b5da96.zip
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions