diff options
-rw-r--r-- | drivers/ata/libata-eh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index c69fcce505c0..370462fa8e01 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1322,14 +1322,14 @@ void ata_eh_qc_complete(struct ata_queued_cmd *qc) | |||
1322 | * should be retried. To be used from EH. | 1322 | * should be retried. To be used from EH. |
1323 | * | 1323 | * |
1324 | * SCSI midlayer limits the number of retries to scmd->allowed. | 1324 | * SCSI midlayer limits the number of retries to scmd->allowed. |
1325 | * scmd->retries is decremented for commands which get retried | 1325 | * scmd->allowed is incremented for commands which get retried |
1326 | * due to unrelated failures (qc->err_mask is zero). | 1326 | * due to unrelated failures (qc->err_mask is zero). |
1327 | */ | 1327 | */ |
1328 | void ata_eh_qc_retry(struct ata_queued_cmd *qc) | 1328 | void ata_eh_qc_retry(struct ata_queued_cmd *qc) |
1329 | { | 1329 | { |
1330 | struct scsi_cmnd *scmd = qc->scsicmd; | 1330 | struct scsi_cmnd *scmd = qc->scsicmd; |
1331 | if (!qc->err_mask && scmd->retries) | 1331 | if (!qc->err_mask) |
1332 | scmd->retries--; | 1332 | scmd->allowed++; |
1333 | __ata_eh_qc_complete(qc); | 1333 | __ata_eh_qc_complete(qc); |
1334 | } | 1334 | } |
1335 | 1335 | ||