s390/dasd: fix infinite term I/O loop
authorStefan Haberland <stefan.haberland@de.ibm.com>
Mon, 24 Nov 2014 09:53:19 +0000 (10:53 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 28 Nov 2014 08:47:29 +0000 (09:47 +0100)
commit2c17124bf33f0d9450375610ff79ad83531b5bfe
tree5810104fc4c8b96a7d28b2541984e2c585358751
parent590aeeddc6c6d9b9c93bec56fc68512631489d2a
s390/dasd: fix infinite term I/O loop

During device activation all paths could be lost and since the device
is not active it has no indication of this fact - hence the CQR will
time-out. The following cancelation might fail with -EINVAL because
CIO took over control and started path verification. In this case mark
the CQR as being CLEARED since it could not be running any more.

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