mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
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>
This commit is contained in:
parent
b65c7491cb
commit
a86073e48a
@ -1802,7 +1802,8 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
|
|||||||
if (!hctxs[i])
|
if (!hctxs[i])
|
||||||
goto err_hctxs;
|
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;
|
goto err_hctxs;
|
||||||
|
|
||||||
atomic_set(&hctxs[i]->nr_active, 0);
|
atomic_set(&hctxs[i]->nr_active, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user