aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2013-01-30 04:26:16 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-07-01 11:31:22 -0400
commitd1ffc1f8660e749a2683f19ee7cfdd837568b37a (patch)
treed4a054ae9e2b19072ed32599e36feb52f7fc67e0 /block/blk-core.c
parentf6f80340308cdcb84db45d3abf95f23d5b66051d (diff)
block/dasd: detailed I/O errors
The DASD driver is using FASTFAIL as an equivalent to the transport errors in SCSI. And the 'steal lock' function maps roughly to a reservation error. So we should be returning the appropriate error codes when completing a request. Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Stefan Weinhuber <wein@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index d5745b5833c9..321443226888 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2315,6 +2315,9 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
2315 case -EBADE: 2315 case -EBADE:
2316 error_type = "critical nexus"; 2316 error_type = "critical nexus";
2317 break; 2317 break;
2318 case -ETIMEDOUT:
2319 error_type = "timeout";
2320 break;
2318 case -EIO: 2321 case -EIO:
2319 default: 2322 default:
2320 error_type = "I/O"; 2323 error_type = "I/O";