Sebastian Ott 9bf05098ce [S390] cio: fix unreg race in set_online path
In ccw_device_set_online we basically start path verification and
wait for the device to reach a final state. If it turns out that the
device has no useable path we schedule the deregistration of the
device (which is still in an non-final state) and wake up the waiting
process. The deregistration process will set a final state, but if
the wake up happens to be prior to this, the device will hang forever
in ccw_device_set_online.

To fix this just set the final NOT_OPER state prior to the scheduled
deregistration of the device.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2011-05-23 10:23:43 +02:00
..
2009-03-26 15:24:14 +01:00
2011-03-15 17:08:24 +01:00
2010-02-26 22:37:29 +01:00
2011-03-15 17:08:24 +01:00
2011-03-15 17:08:24 +01:00
2011-03-23 10:15:59 +01:00
2011-01-05 12:47:28 +01:00
2011-01-05 12:47:28 +01:00