aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-08-18 09:43:11 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 09:49:13 -0400
commit14e242ea55a8b807dc1fb7654941caf68a20cd81 (patch)
tree8a11024d41ec344c88877d6c4127e5fd2b5a8fca /drivers/s390/scsi/zfcp_def.h
parent44f09f73766a97d9c1ff8bf787cfe6b932eabc2c (diff)
[SCSI] zfcp: Only issue one test link command per port
When the FCP channel returns a series of commands with the error status "test link", zfcp will send a series of ELS ADISC commands. This is technically no problem, but it is enough to only issue one test command per remote port. So, track whether a ELS ADISC command is already pending, and do not send a new one if there is already a pending command. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 601f5a575def..c1becfc1e7fe 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -232,6 +232,7 @@ struct zfcp_ls_adisc {
232 232
233/* remote port status */ 233/* remote port status */
234#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001 234#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001
235#define ZFCP_STATUS_PORT_LINK_TEST 0x00000002
235 236
236/* well known address (WKA) port status*/ 237/* well known address (WKA) port status*/
237enum zfcp_wka_status { 238enum zfcp_wka_status {