diff options
author | Andreas Herrmann <aherrman@de.ibm.com> | 2005-06-13 07:15:15 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-06-13 22:26:41 -0400 |
commit | 22753fa514aad02342e647ad13048caa282d9238 (patch) | |
tree | c21c84da406344fd055e226a2fb066bb19a3e673 /drivers/s390/scsi/zfcp_def.h | |
parent | 66c8684abf80a9999392d639627afea80ac62e06 (diff) |
[SCSI] zfcp: fix: allow more time for adapter initialization
From: Maxim Shchetynin <maxim@de.ibm.com>
Extend the time for adapter initialization: In case of protocol
status HOST_CONNECTION_INITIALIZING for the exchange config data
command do a first retry in 1 second, then double the sleep time for
each following retry until recovery exceeds 2 minutes. The old
behaviour of allowing 6 retries with .5 seconds delay between retries
was insufficient and qdio queues were shut down too erarly.
Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index ead324019ff2..08369b9dad68 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -149,8 +149,10 @@ typedef u32 scsi_lun_t; | |||
149 | #define FSF_QTCB_UNSOLICITED_STATUS 0x6305 | 149 | #define FSF_QTCB_UNSOLICITED_STATUS 0x6305 |
150 | #define ZFCP_STATUS_READ_FAILED_THRESHOLD 3 | 150 | #define ZFCP_STATUS_READ_FAILED_THRESHOLD 3 |
151 | #define ZFCP_STATUS_READS_RECOM FSF_STATUS_READS_RECOM | 151 | #define ZFCP_STATUS_READS_RECOM FSF_STATUS_READS_RECOM |
152 | #define ZFCP_EXCHANGE_CONFIG_DATA_RETRIES 6 | 152 | |
153 | #define ZFCP_EXCHANGE_CONFIG_DATA_SLEEP 50 | 153 | /* Do 1st retry in 1 second, then double the timeout for each following retry */ |
154 | #define ZFCP_EXCHANGE_CONFIG_DATA_FIRST_SLEEP 100 | ||
155 | #define ZFCP_EXCHANGE_CONFIG_DATA_RETRIES 7 | ||
154 | 156 | ||
155 | /* timeout value for "default timer" for fsf requests */ | 157 | /* timeout value for "default timer" for fsf requests */ |
156 | #define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ); | 158 | #define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ); |