diff options
author | Mike Anderson <andmike@linux.vnet.ibm.com> | 2008-08-12 21:11:58 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-08-29 16:15:06 +0200 |
commit | bb0003c1e189d5766b6b39299b08c690c985c4dc (patch) | |
tree | ad7f0bcf14bf769df0e9d2188b0d00c2e02bccd8 /drivers/scsi/scsi_error.c | |
parent | [SCSI] scsi_dh: make check_sense return ADD_TO_MLQUEUE (diff) | |
download | linux-bb0003c1e189d5766b6b39299b08c690c985c4dc.tar.xz linux-bb0003c1e189d5766b6b39299b08c690c985c4dc.zip |
[SCSI] make scsi_check_sense HARDWARE_ERROR return ADD_TO_MLQUEUE on retry
Change scsi_check_sense HARDWARE_ERROR check to return ADD_TO_MLQUEUE
if device->retry_hwerror is set to allow retries to occur without
restriction of blk_noretry_request check.
Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 880051c89bde..39ce3aba1dac 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -391,7 +391,7 @@ static int scsi_check_sense(struct scsi_cmnd *scmd) case HARDWARE_ERROR: if (scmd->device->retry_hwerror) - return NEEDS_RETRY; + return ADD_TO_MLQUEUE; else return SUCCESS; |