mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
[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>
This commit is contained in:
parent
c7dbb627a2
commit
bb0003c1e1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user