From: Steve Best <sbest@redhat.com> Date: Thu, 22 Apr 2010 18:22:36 -0400 Subject: [scsi] ipr: handle logically bad block write errors Message-id: <20100422181343.16224.63650.sendpatchset@squad5-lp1.lab.bos.redhat.com> Patchwork-id: 24594 O-Subject: [PATCH RHEL5.6 BZ563589 v2 3/15] scsi ipr: Handles an error that wasn't previously handled Bugzilla: 563589 RH-Acked-by: Jarod Wilson <jarod@redhat.com> RH-Acked-by: David Howells <dhowells@redhat.com> RHBZ#: ====== https://bugzilla.redhat.com/show_bug.cgi?id=563589 Description: ============ Patch 3/15: scsi ipr: Handles an error that wasn't previously handled commit b75424fcfe8fae56344a65e3f04bbc7e975e750e Adds a message to the error table for an error that wasn't previously handled. In some cases the I/O Adapter will detect an error condition and mark a block as "logically bad". Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com> Brew: ===== Built on all platforms. All patches brewed together. https://brewweb.devel.redhat.com/taskinfo?taskID=2396659 =============================================================== Steve Best IBM on-site partner Signed-off-by: Jarod Wilson <jarod@redhat.com> diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index c2753fa..6d1fe02 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -353,6 +353,8 @@ struct ipr_error_table_t ipr_error_table[] = { "9076: Configuration error, missing remote IOA"}, {0x06679100, 0, IPR_DEFAULT_LOG_LEVEL, "4050: Enclosure does not support a required multipath function"}, + {0x06690000, 0, IPR_DEFAULT_LOG_LEVEL, + "4070: Logically bad block written on device"}, {0x06690200, 0, IPR_DEFAULT_LOG_LEVEL, "9041: Array protection temporarily suspended"}, {0x06698200, 0, IPR_DEFAULT_LOG_LEVEL,