aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
author <jejb@titanic.il.steeleye.com>2005-04-12 17:49:09 -0500
committerJames Bottomley <jejb@titanic>2005-04-18 12:35:06 -0500
commitbf341919dbc1fbcbb565fb3224c840760ebd9f85 (patch)
tree9ff0bb375ccd709b018eccd6d338bf18b9c898aa /include/scsi
parent6f71d9bc025b02a8cbc2be83b0226a7043a507a5 (diff)
downloadkernel_samsung_tuna-bf341919dbc1fbcbb565fb3224c840760ebd9f85.zip
kernel_samsung_tuna-bf341919dbc1fbcbb565fb3224c840760ebd9f85.tar.gz
kernel_samsung_tuna-bf341919dbc1fbcbb565fb3224c840760ebd9f85.tar.bz2
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 'include/scsi')
-rw-r--r--include/scsi/scsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 3507b3d..659ecf4 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -295,6 +295,8 @@ struct scsi_lun {
#define DID_PASSTHROUGH 0x0a /* Force command past mid-layer */
#define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */
#define DID_IMM_RETRY 0x0c /* Retry without decrementing retry count */
+#define DID_REQUEUE 0x0d /* Requeue command (no immediate retry) also
+ * without decrementing the retry count */
#define DRIVER_OK 0x00 /* Driver status */
/*