aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
author <jejb@titanic.il.steeleye.com>2005-04-12 18:49:09 -0400
committerJames Bottomley <jejb@titanic>2005-04-16 21:16:08 -0400
commit686579d95d48c713bdb7008cc76af8398219e687 (patch)
tree200694afba54d5b9cec984e52689943766eea119 /drivers
parent91bbfbda8d41f834c70c47d6f8c95245c90019e5 (diff)
scsi: add DID_REQUEUE to the error handling
We have a DID_IMM_RETRY to require a retry at once, but we could do with a DID_REQUEUE to instruct the mid-layer to treat this command in the same manner as QUEUE_FULL or BUSY (i.e. halt the submission until another command returns ... or the queue pressure builds if there are no outstanding commands). Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/scsi_error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 13bac93fc397..203a0812508a 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -1306,6 +1306,9 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd)
1306 case DID_IMM_RETRY: 1306 case DID_IMM_RETRY:
1307 return NEEDS_RETRY; 1307 return NEEDS_RETRY;
1308 1308
1309 case DID_REQUEUE:
1310 return ADD_TO_MLQUEUE;
1311
1309 case DID_ERROR: 1312 case DID_ERROR:
1310 if (msg_byte(scmd->result) == COMMAND_COMPLETE && 1313 if (msg_byte(scmd->result) == COMMAND_COMPLETE &&
1311 status_byte(scmd->result) == RESERVATION_CONFLICT) 1314 status_byte(scmd->result) == RESERVATION_CONFLICT)