]> git.baikalelectronics.ru Git - kernel.git/commit
iucv: fix cpu hotplug
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 6 Jan 2009 02:09:02 +0000 (18:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2009 02:09:02 +0000 (18:09 -0800)
commit9bf666ab436e5c0a6c749814b531b5aca2c3af51
tree1d2d2ebc94dd4b18d26f25cd062bea741f85237e
parent342b078c47e25e3abc8988514fa3ea1aec2d6df4
iucv: fix cpu hotplug

If the iucv module is compiled in/loaded but no user is registered cpu
hot remove doesn't work. Reason for that is that the iucv cpu hotplug
notifier on CPU_DOWN_PREPARE checks if the iucv_buffer_cpumask would
be empty after the corresponding bit would be cleared. However the bit
was never set since iucv wasn't enable. That causes all cpu hot unplug
operations to fail in this scenario.
To fix this use iucv_path_table as an indicator wether iucv is enabled
or not.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/iucv.c