]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitf1d3e4dca3f8d4f55656477e83d0afe0ea7cbaed
tree1d2d2ebc94dd4b18d26f25cd062bea741f85237e
parent65dbd7c2778f1921ef1ee2a73e47a2a126fed30f
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