]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] smp: Fix locking order.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 30 Apr 2008 11:38:36 +0000 (13:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 Apr 2008 11:38:44 +0000 (13:38 +0200)
commit663e190c0322916aa56efdbfcc4933849cec0c3e
tree7a5346faefb67b24f05c00691ca170a6805b0921
parent65392f6b6bf36a8f943d63e750e3f23d1da7539f
[S390] smp: Fix locking order.

On some smp sysfs store attributes get_online_cpus() may block on
cpu_hotplug.lock, but we hold already smp_cpu_state_mutex. Since the
locking order on cpu hotplug via arch_update_cpu_topology is inverse
this might lead to deadlocks.
So make sure locking order is always the same.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c