diff options
author | Jens Axboe <axboe@fb.com> | 2016-09-15 10:45:45 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-15 10:45:45 -0400 |
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) | |||
2271 | return 0; | 2271 | return 0; |
2272 | } | 2272 | } |
2273 | 2273 | ||
2274 | static int blk_mq_create_mq_map(struct blk_mq_tag_set *set, | ||
2275 | const struct cpumask *affinity_mask) | ||
2276 | { | ||
2277 | int queue = -1, cpu = 0; | ||
2278 | |||
2279 | set->mq_map = kzalloc_node(sizeof(*set->mq_map) * nr_cpu_ids, | ||
2280 | GFP_KERNEL, set->numa_node); | ||
2281 | if (!set->mq_map) | ||
2282 | return -ENOMEM; | ||
2283 | |||
2284 | if (!affinity_mask) | ||
2285 | return 0; /* map all cpus to queue 0 */ | ||
2286 | |||
2287 | /* If cpus are offline, map them to first hctx */ | ||
2288 | for_each_online_cpu(cpu) { | ||
2289 | if (cpumask_test_cpu(cpu, affinity_mask)) | ||
2290 | queue++; | ||
2291 | if (queue >= 0) | ||
2292 | set->mq_map[cpu] = queue; | ||
2293 | } | ||
2294 | |||
2295 | return 0; | ||
2296 | } | ||
2297 | |||
2298 | /* | 2274 | /* |
2299 | * Alloc a tag set to be associated with one or more request queues. | 2275 | * Alloc a tag set to be associated with one or more request queues. |
2300 | * May fail with EINVAL for various error conditions. May adjust the | 2276 | * May fail with EINVAL for various error conditions. May adjust the |