Skip to content

Commit c57a39a

Browse files
sswenjejb
authored andcommitted
[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 <[email protected]> Signed-off-by: Christof Schmitt <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 072b91f commit c57a39a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/s390/scsi/zfcp_fc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ int zfcp_scan_ports(struct zfcp_adapter *adapter)
520520
int ret, i;
521521
struct zfcp_gpn_ft *gpn_ft;
522522

523+
zfcp_erp_wait(adapter); /* wait until adapter is finished with ERP */
523524
if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT)
524525
return 0;
525526

0 commit comments

Comments
 (0)