aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2008-07-02 04:56:33 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:34 -0400
commit7afe29f7dd6dccbe454d7fd6cd6a5a7f7bcbc530 (patch)
treedaf51c1875d1080d1dedc9094159ad44cc557a10 /drivers/s390/scsi/zfcp_def.h
parent3968ce800f45d8795ceb6f186c1efe420c98e1b0 (diff)
[SCSI] zfcp: Adapter reopen for large number of unsolicited status
When zfcp receives 16 unsolicited status messages, this could trigger an adapter reopen. In this case, first try to send a new status read, and only if this fails, go through the recovery. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 1e837d46ea7..202f7e66c44 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -108,7 +108,6 @@ zfcp_address_to_sg(void *address, struct scatterlist *list, unsigned int size)
108#define ZFCP_QTCB_VERSION FSF_QTCB_CURRENT_VERSION 108#define ZFCP_QTCB_VERSION FSF_QTCB_CURRENT_VERSION
109/* ATTENTION: value must not be used by hardware */ 109/* ATTENTION: value must not be used by hardware */
110#define FSF_QTCB_UNSOLICITED_STATUS 0x6305 110#define FSF_QTCB_UNSOLICITED_STATUS 0x6305
111#define ZFCP_STATUS_READS_RECOM FSF_STATUS_READS_RECOM
112 111
113/* Do 1st retry in 1 second, then double the timeout for each following retry */ 112/* Do 1st retry in 1 second, then double the timeout for each following retry */
114#define ZFCP_EXCHANGE_CONFIG_DATA_FIRST_SLEEP 1 113#define ZFCP_EXCHANGE_CONFIG_DATA_FIRST_SLEEP 1
@@ -743,7 +742,7 @@ struct zfcp_data {
743#define ZFCP_POOL_FSF_REQ_ERP_NR 1 742#define ZFCP_POOL_FSF_REQ_ERP_NR 1
744#define ZFCP_POOL_FSF_REQ_SCSI_NR 1 743#define ZFCP_POOL_FSF_REQ_SCSI_NR 1
745#define ZFCP_POOL_FSF_REQ_ABORT_NR 1 744#define ZFCP_POOL_FSF_REQ_ABORT_NR 1
746#define ZFCP_POOL_STATUS_READ_NR ZFCP_STATUS_READS_RECOM 745#define ZFCP_POOL_STATUS_READ_NR FSF_STATUS_READS_RECOM
747#define ZFCP_POOL_DATA_GID_PN_NR 1 746#define ZFCP_POOL_DATA_GID_PN_NR 1
748 747
749/* struct used by memory pools for fsf_requests */ 748/* struct used by memory pools for fsf_requests */