• Mike Anderson's avatar
    [PATCH] scsi_error device offline fix · 6532af8c
    Mike Anderson authored
    This patch corrects a problem in scsi error handling.
    
    When a device is offlined indicated by a message like ...Device offlined
    - not ready...
    
    the command return status was not being updated with a failure status if
    the IO was a timeout.
    
    I tested the patch on system with ips, aic, and qlogic fc adapters, but
    was unable to generate a satisfactory device offline test case.
    
    I did test this fix on uml with scsi_debug and generated a device
    offline condition with verified this fix was working correctly.
    
    -andmike
    --
    Michael Anderson
    andmike@us.ibm.com
    
     scsi_error.c |    8 ++++++--
     1 files changed, 6 insertions(+), 2 deletions(-)
    6532af8c
scsi_error.c 46.3 KB