[S390] dasd: prevent panic with unresumed devices
authorStefan Haberland <stefan.haberland@de.ibm.com>
Mon, 31 Jan 2011 10:30:03 +0000 (11:30 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 31 Jan 2011 10:30:20 +0000 (11:30 +0100)
commitf602f6d694a99a0141c066c8f0b360a0b3c16915
treecde04e5bf11edeeb54e32153a90ec024a76c921a
parent70d1f365568e0cdbc9f4ab92428e1830fdb09ab0
[S390] dasd: prevent panic with unresumed devices

If a device is not resumed correctly the system crashes when this
device is set offline. This may happen if it gets disconnected
during suspend.
Check if the device is already removed from alias handling and skip
these steps to prevent the kernel panic.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_alias.c