]> git.karo-electronics.de Git - linux-beck.git/commit
s390/dasd: fix failing path verification
authorStefan Haberland <stefan.haberland@de.ibm.com>
Fri, 7 Aug 2015 11:19:03 +0000 (13:19 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 9 Aug 2015 19:07:41 +0000 (21:07 +0200)
commit1eb38023ddb480276c6b75e0db6463c47251eb7b
treeebc33843fee8087c2dc69fafe3aa7c58378e270c
parentaad1b688c996b4a247c4a8fd1bd6c5c563963ddb
s390/dasd: fix failing path verification

DASD path verification requires the usage of sleep_on_immediatly to
ensure that no other I/O request is blocking the recovery of
disconnected devices. But two concurrent path verification workers for
the same device may kill each others requests due to the usage of the
immediate sleep_on function. This may lead to unsuccessful path
verifications.

Prevent that two parallel path verification workers conflict with
each other by implementing a device flag signalling a already running
worker.

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