]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] s390: dasd ioctl never returns
authorHorst Hummel <horst.hummel@de.ibm.com>
Fri, 28 Apr 2006 01:40:10 +0000 (18:40 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:48 +0000 (08:33 -0700)
commit39ccf95e28765a08a9e01be614695d7c570b4e77
tree9a381e8e8afcd3d6048aaae6a7635f137b6951da
parenta3ae39c060be57a4936d2c1d970e4d0c7d320d9c
[PATCH] s390: dasd ioctl never returns

The dasd state machine is not designed to enable an unformatted device, since
'unformatted' is a final state.  The BIODASDENABLE ioctl calls
dasd_enable_device() which never returns if the device is in this special
state.  Return -EPERM in dasd_increase_state for unformatted devices to make
dasd_enable_device terminate.  Note: To get such an unformatted device online
it has to be re-analyzed.  This means that the device needs to be disabled
prior to re-enablement.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/block/dasd.c