]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/numa: Do not update sysfs cpu registration from invalid context
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 25 Jun 2013 03:08:05 +0000 (22:08 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:49:34 +0000 (11:49 +1000)
commit84abddfed3fab15ae7a7ef835679de8323fdd73f
treeab68156166d38800f77502f7bbbc6ba4aa73578b
parentbce4c2ad8961c57ba2b042ddbd40802f6c6e09a0
powerpc/numa: Do not update sysfs cpu registration from invalid context

The topology update code that updates the cpu node registration in sysfs
should not be called while in stop_machine(). The register/unregister
calls take a lock and may sleep.

This patch moves these calls outside of the call to stop_machine().

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c