diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2008-07-02 04:56:31 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:33 -0400 |
commit | c57a39a45a76bc8ecdd2c8a9bc7cf7be3ed73fe1 (patch) | |
tree | be5b66f64a60e4f7748b11b6897aa26f623151ec /drivers/s390 | |
parent | 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 (diff) |
[SCSI] zfcp: wait until adapter is finished with ERP during auto-port
In some situations the auto port attachment task is started
before the ERP is finished. To prevent this unwanted situation
we wait until the adapter is up and running before we start our work.
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')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index aa2d9a668d1..34c9b20ce49 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -520,6 +520,7 @@ int zfcp_scan_ports(struct zfcp_adapter *adapter) | |||
520 | int ret, i; | 520 | int ret, i; |
521 | struct zfcp_gpn_ft *gpn_ft; | 521 | struct zfcp_gpn_ft *gpn_ft; |
522 | 522 | ||
523 | zfcp_erp_wait(adapter); /* wait until adapter is finished with ERP */ | ||
523 | if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT) | 524 | if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT) |
524 | return 0; | 525 | return 0; |
525 | 526 | ||