aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-14 15:18:01 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-14 15:18:01 -0500
commitf33b5d783b4f56be5ace6a1c98fb5f76b2d2d07d (patch)
treeb027b5f3429d416b3da5b9195024007dab062a5e /drivers/scsi/scsi_error.c
parente935d5da8e5d12fabe5b632736c50eae0427e8c8 (diff)
parent67963132638e67ad3c5aa16765e6f3f2f3cdd85c (diff)
Merge ../linux-2.6
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 9cf020622134..f988418d805d 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -1305,7 +1305,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd)
1305 * the request was not marked fast fail. Note that above, 1305 * the request was not marked fast fail. Note that above,
1306 * even if the request is marked fast fail, we still requeue 1306 * even if the request is marked fast fail, we still requeue
1307 * for queue congestion conditions (QUEUE_FULL or BUSY) */ 1307 * for queue congestion conditions (QUEUE_FULL or BUSY) */
1308 if ((++scmd->retries) < scmd->allowed 1308 if ((++scmd->retries) <= scmd->allowed
1309 && !blk_noretry_request(scmd->request)) { 1309 && !blk_noretry_request(scmd->request)) {
1310 return NEEDS_RETRY; 1310 return NEEDS_RETRY;
1311 } else { 1311 } else {
@@ -1430,7 +1430,7 @@ static void scsi_eh_flush_done_q(struct list_head *done_q)
1430 list_del_init(&scmd->eh_entry); 1430 list_del_init(&scmd->eh_entry);
1431 if (scsi_device_online(scmd->device) && 1431 if (scsi_device_online(scmd->device) &&
1432 !blk_noretry_request(scmd->request) && 1432 !blk_noretry_request(scmd->request) &&
1433 (++scmd->retries < scmd->allowed)) { 1433 (++scmd->retries <= scmd->allowed)) {
1434 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: flush" 1434 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: flush"
1435 " retry cmd: %p\n", 1435 " retry cmd: %p\n",
1436 current->comm, 1436 current->comm,