diff options
author | Jens Axboe <axboe@fb.com> | 2016-09-15 08:45:45 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-15 08:45:45 -0600 |
commit | 9151bcb4fb38aab04cdc67cc3b3e11396db1b8b4 (patch) | |
tree | 21c63aa480fc912adf83d1aa37e32ca061d410c2 /block | |
parent | 1b157939f92ae22d10b9d52baaa14f826927f5ff (diff) |
blk-mq: kill unused blk_mq_create_mq_map()
Fixes 1b157939f92a ("blk-mq: get rid of the cpumask in struct blk_mq_tags")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 060b350d3f0c..f1c5263c44e8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2271,30 +2271,6 @@ static int blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set) return 0; } -static int blk_mq_create_mq_map(struct blk_mq_tag_set *set, - const struct cpumask *affinity_mask) -{ - int queue = -1, cpu = 0; - - set->mq_map = kzalloc_node(sizeof(*set->mq_map) * nr_cpu_ids, - GFP_KERNEL, set->numa_node); - if (!set->mq_map) - return -ENOMEM; - - if (!affinity_mask) - return 0; /* map all cpus to queue 0 */ - - /* If cpus are offline, map them to first hctx */ - for_each_online_cpu(cpu) { - if (cpumask_test_cpu(cpu, affinity_mask)) - queue++; - if (queue >= 0) - set->mq_map[cpu] = queue; - } - - return 0; -} - /* * Alloc a tag set to be associated with one or more request queues. * May fail with EINVAL for various error conditions. May adjust the |