[SCSI] scsi_dh_alua: implement 'implied transition timeout'
authorRob Evers <revers@redhat.com>
Fri, 18 May 2012 18:08:54 +0000 (14:08 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:32 +0000 (08:58 +0100)
commit3588c5a21aef8c8dcc3b30d72c62971e97af1322
treee988d106664bb37c8044165ce18319b65c249e38
parent6ad819b06ddf13a5a1d995eb26555903f6c3b71a
[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>
drivers/scsi/device_handler/scsi_dh_alua.c
include/scsi/scsi.h