summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorRob Evers <revers@redhat.com>2012-05-18 14:08:54 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 08:58:32 +0100
commit3588c5a21aef8c8dcc3b30d72c62971e97af1322 (patch)
treee988d106664bb37c8044165ce18319b65c249e38 /include/scsi
parent6ad819b06ddf13a5a1d995eb26555903f6c3b71a (diff)
[SCSI] scsi_dh_alua: implement 'implied transition timeout'
During alua transitions, an array can return transitioning status in response to rtpg requests. These requests get retried for a maximum of 60 seconds by default before timing out. Sometimes this timeout isn't sufficient to allow the array to complete the transition. T10-spc4 addresses this under 'Report Target Port Groups' command. This update retrieves the timeout value from the storage array if available and retries the transitioning rtpgs for up to the 'implied transitioning timeout' value Signed-off-by: Rob Evers <revers@redhat.com> Reviewed-by: Babu Moger <babu.moger@netapp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.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 f34a5a87af3..c6f0974b891 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -161,6 +161,8 @@ struct scsi_cmnd;
#define MI_REPORT_PRIORITY 0x0e
#define MI_REPORT_TIMESTAMP 0x0f
#define MI_MANAGEMENT_PROTOCOL_IN 0x10
+/* value for MI_REPORT_TARGET_PGS ext header */
+#define MI_EXT_HDR_PARAM_FMT 0x20
/* values for maintenance out */
#define MO_SET_IDENTIFYING_INFORMATION 0x06
#define MO_SET_TARGET_PGS 0x0a