diff options
author | Hannes Reinecke <hare@suse.de> | 2013-01-30 04:26:15 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-07-01 11:31:21 -0400 |
commit | f6f80340308cdcb84db45d3abf95f23d5b66051d (patch) | |
tree | 470ced33ed5398650590fc5e22a42a5758ccc9b5 /drivers/s390 | |
parent | a2ace46632fb38c7a3771f2f0d235a4295e83bcf (diff) |
s390/dasd: Reduce amount of messages for specific errors
Whenever a request has been aborted internally by the driver
there is no sense data to be had. And printing lots of messages
stalls the system, so better to print out a short one-liner.
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 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd_erp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/s390/block/dasd_erp.c b/drivers/s390/block/dasd_erp.c index 3250cb471f78..8d11f773a752 100644 --- a/drivers/s390/block/dasd_erp.c +++ b/drivers/s390/block/dasd_erp.c | |||
@@ -159,6 +159,14 @@ dasd_log_sense(struct dasd_ccw_req *cqr, struct irb *irb) | |||
159 | struct dasd_device *device; | 159 | struct dasd_device *device; |
160 | 160 | ||
161 | device = cqr->startdev; | 161 | device = cqr->startdev; |
162 | if (cqr->intrc == -ETIMEDOUT) { | ||
163 | dev_err(&device->cdev->dev, "cqr %p timeout error", cqr); | ||
164 | return; | ||
165 | } | ||
166 | if (cqr->intrc == -ENOLINK) { | ||
167 | dev_err(&device->cdev->dev, "cqr %p transport error", cqr); | ||
168 | return; | ||
169 | } | ||
162 | /* dump sense data */ | 170 | /* dump sense data */ |
163 | if (device->discipline && device->discipline->dump_sense) | 171 | if (device->discipline && device->discipline->dump_sense) |
164 | device->discipline->dump_sense(device, cqr, irb); | 172 | device->discipline->dump_sense(device, cqr, irb); |