There are two instances of increment and test of retries of scsi cmnd in functions scsi_decide_disposition() and scsi_eh_flush_done_q() respectively. One of the increments is overwork when the corresponding cmnds are same. The overwork is fixed in scsi_decide_disposition(). Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx> --- --- a/drivers/scsi/scsi_error.c 2010-09-13 07:07:38.000000000 +0800 +++ b/drivers/scsi/scsi_error.c 2010-11-01 20:39:38.000000000 +0800 @@ -1541,7 +1541,7 @@ int scsi_decide_disposition(struct scsi_ * the request was not marked fast fail. Note that above, * even if the request is marked fast fail, we still requeue * for queue congestion conditions (QUEUE_FULL or BUSY) */ - if ((++scmd->retries) <= scmd->allowed + if (scmd->retries < scmd->allowed && !scsi_noretry_cmd(scmd)) { return NEEDS_RETRY; } else { -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html