Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fd1b494d4a8147da4517fef72d15116bbb1a2dc7
Commit:     fd1b494d4a8147da4517fef72d15116bbb1a2dc7
Parent:     7b3b92116387fbea7b3b42553180984a544206d9
Author:     Luben Tuikov <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 29 19:45:23 2006 -0800
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed Jan 31 12:18:52 2007 -0600

    [SCSI] Fix sense key MEDIUM ERROR processing and retry
    
    1) If the device reports an uncorrectable MEDIUM ERROR, such
    as SK MEDIUM ERROR, ASC UNRECOVERED READ ERR, AMNF DATA
    FIELD or RECORD NOT FOUND, then: In scsi_check_sense()
    return SUCCESS so as to not retry -- the error is
    uncorrectable -- this speeds up total processing time.
    
    Signed-off-by: Luben Tuikov <[EMAIL PROTECTED]>
    
    Extracted the MEDIUM ERROR piece and
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/scsi_error.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 8e5011d..2dce06a 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -359,6 +359,11 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
                return SUCCESS;
 
        case MEDIUM_ERROR:
+               if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */
+                   sshdr.asc == 0x13 || /* AMNF DATA FIELD */
+                   sshdr.asc == 0x14) { /* RECORD NOT FOUND */
+                       return SUCCESS;
+               }
                return NEEDS_RETRY;
 
        case HARDWARE_ERROR:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to