Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

padata: Fix cpu hotplug

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 <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Steffen Klassert and committed by
Herbert Xu
96120905 13614e0f

+3
+3
kernel/padata.c
··· 748 748 return -ENOMEM; 749 749 750 750 padata_replace(pinst, pd); 751 + 752 + cpumask_clear_cpu(cpu, pd->cpumask.cbcpu); 753 + cpumask_clear_cpu(cpu, pd->cpumask.pcpu); 751 754 } 752 755 753 756 return 0;