• Mike Anderson's avatar
    [PATCH] recovered error forward port · a5090bb3
    Mike Anderson authored
    Forward port of Kurt Garloff's recovered error fix.
    http://marc.theaimsgroup.com/?l=linux-scsi&m=104470522312140&w=2
    
    Also corrected some typos related to setting local scope variable by mistake.
    
    Signature without fix:
    Current sdc: sense key Recovered Error
    Additional sense: Failure prediction threshold exceeded
    end_request: I/O error, dev sdc, sector 1808
    Buffer I/O error on device sdc, logical block 226
    
    Signature with fix:
    scsi_debug: cmd 28 00 00 00 3f 10 00 00 f0 00
    scsi_debug: ... <1 0 0 0> non-zero result=0x8000002
    Current sdsdc: sense key Recovered Error
    Additional sense: Failure prediction threshold exceeded
    
     drivers/scsi/sd.c |    6 ++--
     drivers/scsi/sr.c |   79 +++++++++++++++++++++++++++++++++++-------------------
     2 files changed, 56 insertions(+), 29 deletions(-)
    a5090bb3
sd.c 39.4 KB