Skip to content
  • Stephen M. Cameron's avatar
    cciss: fix SCSI device reset handler · 88f627ae
    Stephen M. Cameron authored
    
    
    Fix the SCSI reset error handler to send a working, properly addressed
    reset message to the target device and add code to wait for the target
    device to become ready by polling it with Test Unit Ready.
    
    The existing reset code was broken in that it didn't bother to set the
    8-byte LUN address to anything besides zero, so the command was addressed
    to the controller, which pretended to the driver that the command
    succeeded, while doing nothing.  Ages ago I tested this code, but
    unbeknownst to me, my test was flawed, and what I thought was a tape drive
    getting reset was actually nothing of the sort.  Unfortunately, there is
    still lots of Smartarray firmware that doesn't handle doing target resets
    right, and this code won't help in those cases, but it also shouldn't make
    things worse in those cases than they already are.
    
    Signed-off-by: default avatarStephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
    Cc: Mike Miller <mikem@beardog.cca.cpqcorp.net>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    88f627ae