summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-10-13 15:41:54 -0600
committerJens Axboe <axboe@fb.com>2014-10-13 15:41:54 -0600
commita86073e48ae85c9b50127facb0cc45bbd35972a1 (patch)
treec46d21a0e901170ad8a5fd3795bc1dce4a3f7039
parentb65c7491cb865577e83e6b7fae2aa2f4ea457c38 (diff)
downloadop-kernel-dev-a86073e48ae85c9b50127facb0cc45bbd35972a1.zip
op-kernel-dev-a86073e48ae85c9b50127facb0cc45bbd35972a1.tar.gz
blk-mq: allocate cpumask on the home node
All other allocs are done on the specific node, somehow the cpumask for hw queue runs was missed. Fix that by using zalloc_cpumask_var_node() in blk_mq_init_queue(). Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--block/blk-mq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 4e7a314..79aa11b 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1802,7 +1802,8 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
if (!hctxs[i])
goto err_hctxs;
- if (!zalloc_cpumask_var(&hctxs[i]->cpumask, GFP_KERNEL))
+ if (!zalloc_cpumask_var_node(&hctxs[i]->cpumask, GFP_KERNEL,
+ node))
goto err_hctxs;
atomic_set(&hctxs[i]->nr_active, 0);
OpenPOWER on IntegriCloud