aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-17 20:54:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-17 20:54:40 -0400
commitc55d267de274d308927b60c3e740c1a826832317 (patch)
tree21b53a8c725d9f9650f60d94b349459d5b8dae10 /block
parent61ef46fd45c3c62dc7c880a45dd2aa841b9af8fb (diff)
parentbc898c97f7ba24def788d9f80786cf028a197122 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (170 commits) [SCSI] scsi_dh_rdac: Add MD36xxf into device list [SCSI] scsi_debug: add consecutive medium errors [SCSI] libsas: fix ata list corruption issue [SCSI] hpsa: export resettable host attribute [SCSI] hpsa: move device attributes to avoid forward declarations [SCSI] scsi_debug: Logical Block Provisioning (SBC3r26) [SCSI] sd: Logical Block Provisioning update [SCSI] Include protection operation in SCSI command trace [SCSI] hpsa: fix incorrect PCI IDs and add two new ones (2nd try) [SCSI] target: Fix volume size misreporting for volumes > 2TB [SCSI] bnx2fc: Broadcom FCoE offload driver [SCSI] fcoe: fix broken fcoe interface reset [SCSI] fcoe: precedence bug in fcoe_filter_frames() [SCSI] libfcoe: Remove stale fcoe-netdev entries [SCSI] libfcoe: Move FCOE_MTU definition from fcoe.h to libfcoe.h [SCSI] libfc: introduce __fc_fill_fc_hdr that accepts fc_hdr as an argument [SCSI] fcoe, libfc: initialize EM anchors list and then update npiv EMs [SCSI] Revert "[SCSI] libfc: fix exchange being deleted when the abort itself is timed out" [SCSI] libfc: Fixing a memory leak when destroying an interface [SCSI] megaraid_sas: Version and Changelog update ... Fix up trivial conflicts due to whitespace differences in drivers/scsi/libsas/{sas_ata.c,sas_scsi_host.c}
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 518dd423a5fe..a63336d49f30 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2045,9 +2045,26 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
2045 2045
2046 if (error && req->cmd_type == REQ_TYPE_FS && 2046 if (error && req->cmd_type == REQ_TYPE_FS &&
2047 !(req->cmd_flags & REQ_QUIET)) { 2047 !(req->cmd_flags & REQ_QUIET)) {
2048 printk(KERN_ERR "end_request: I/O error, dev %s, sector %llu\n", 2048 char *error_type;
2049 req->rq_disk ? req->rq_disk->disk_name : "?", 2049
2050 (unsigned long long)blk_rq_pos(req)); 2050 switch (error) {
2051 case -ENOLINK:
2052 error_type = "recoverable transport";
2053 break;
2054 case -EREMOTEIO:
2055 error_type = "critical target";
2056 break;
2057 case -EBADE:
2058 error_type = "critical nexus";
2059 break;
2060 case -EIO:
2061 default:
2062 error_type = "I/O";
2063 break;
2064 }
2065 printk(KERN_ERR "end_request: %s error, dev %s, sector %llu\n",
2066 error_type, req->rq_disk ? req->rq_disk->disk_name : "?",
2067 (unsigned long long)blk_rq_pos(req));
2051 } 2068 }
2052 2069
2053 blk_account_io_completion(req, nr_bytes); 2070 blk_account_io_completion(req, nr_bytes);