Skip to content

Commit

Permalink
padata: Fix cpu hotplug
Browse files Browse the repository at this point in the history
We don't remove the cpu that went offline from our cpumasks
on cpu hotplug. This got lost somewhere along the line, so
restore it. This fixes a hang of the padata instance on cpu
hotplug.

Signed-off-by: Steffen Klassert <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
klassert authored and herbertx committed Mar 29, 2012
1 parent 13614e0 commit 9612090
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/padata.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ static int __padata_remove_cpu(struct padata_instance *pinst, int cpu)
return -ENOMEM;

padata_replace(pinst, pd);

cpumask_clear_cpu(cpu, pd->cpumask.cbcpu);
cpumask_clear_cpu(cpu, pd->cpumask.pcpu);
}

return 0;
Expand Down

0 comments on commit 9612090

Please sign in to comment.