diff options
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 94ed262bdf0c..edfaf241c5ba 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -932,8 +932,7 @@ static int scsi_eh_try_stu(struct scsi_cmnd *scmd) | |||
932 | int i, rtn = NEEDS_RETRY; | 932 | int i, rtn = NEEDS_RETRY; |
933 | 933 | ||
934 | for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) | 934 | for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) |
935 | rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, | 935 | rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, scmd->device->request_queue->rq_timeout, 0); |
936 | scmd->device->timeout, 0); | ||
937 | 936 | ||
938 | if (rtn == SUCCESS) | 937 | if (rtn == SUCCESS) |
939 | return 0; | 938 | return 0; |
@@ -1340,9 +1339,10 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd) | |||
1340 | * LLD/transport was disrupted during processing of the IO. | 1339 | * LLD/transport was disrupted during processing of the IO. |
1341 | * The transport class is now blocked/blocking, | 1340 | * The transport class is now blocked/blocking, |
1342 | * and the transport will decide what to do with the IO | 1341 | * and the transport will decide what to do with the IO |
1343 | * based on its timers and recovery capablilities. | 1342 | * based on its timers and recovery capablilities if |
1343 | * there are enough retries. | ||
1344 | */ | 1344 | */ |
1345 | return ADD_TO_MLQUEUE; | 1345 | goto maybe_retry; |
1346 | case DID_TRANSPORT_FAILFAST: | 1346 | case DID_TRANSPORT_FAILFAST: |
1347 | /* | 1347 | /* |
1348 | * The transport decided to failfast the IO (most likely | 1348 | * The transport decided to failfast the IO (most likely |