[S390] dasd: forward internal errors to dasd_sleep_on caller
authorStefan Weinhuber <wein@de.ibm.com>
Fri, 12 Jun 2009 08:26:39 +0000 (10:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Jun 2009 08:27:36 +0000 (10:27 +0200)
commit6cc7f168954fe8b3d8988a90b2478a9c11c5ebcb
treede3ee836f75f4cd1010a78c49d42393198b6f955
parent736e6ea0bf97ec79521f88704ce8506e5d60d078
[S390] dasd: forward internal errors to dasd_sleep_on caller

If a DASD requests is started with dasd_sleep_on and fails, then the
calling function may need to know the reason for the failure.
In cases of hardware errors it can inspect the sense data in the irb,
but when the reason is internal (e.g. start_IO failed) then it needs
a meaningfull return code.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_diag.c
drivers/s390/block/dasd_eckd.c
drivers/s390/block/dasd_int.h