Skip to content

Commit

Permalink
[SCSI] make scsi_check_sense HARDWARE_ERROR return ADD_TO_MLQUEUE on …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Mike Anderson authored and James Bottomley committed Aug 29, 2008
1 parent c7dbb62 commit bb0003c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bb0003c

Please sign in to comment.