提交 fad3a906 编写于 作者: S Steffen Klassert 提交者: Herbert Xu

padata: Fix cpu index counting

The counting of the cpu index got lost with a recent commit.
This patch restores it. This fixes a hang of the parallel worker
threads on cpu hotplug.
Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 1fb1defb
...@@ -408,6 +408,7 @@ static void padata_init_pqueues(struct parallel_data *pd) ...@@ -408,6 +408,7 @@ static void padata_init_pqueues(struct parallel_data *pd)
pqueue = per_cpu_ptr(pd->pqueue, cpu); pqueue = per_cpu_ptr(pd->pqueue, cpu);
pqueue->pd = pd; pqueue->pd = pd;
pqueue->cpu_index = cpu_index; pqueue->cpu_index = cpu_index;
cpu_index++;
__padata_list_init(&pqueue->reorder); __padata_list_init(&pqueue->reorder);
__padata_list_init(&pqueue->parallel); __padata_list_init(&pqueue->parallel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册