From mboxrd@z Thu Jan 1 00:00:00 1970 From: christof.schmitt@de.ibm.com Subject: [patch 01/11] zfcp: wait until adapter is finished with ERP during auto-port Date: Mon, 30 Jun 2008 12:52:37 +0200 Message-ID: <20080630110054.836603000@de.ibm.com> References: <20080630105236.960064000@de.ibm.com> Return-path: Content-Disposition: inline; filename=zfcp_auto_port_erp_race.diff Sender: linux-scsi-owner@vger.kernel.org List-Archive: List-Post: To: James Bottomley Cc: linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org, Swen Schillig , Christof Schmitt List-ID: From: Swen Schillig 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 Signed-off-by: Christof Schmitt --- drivers/s390/scsi/zfcp_fc.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/s390/scsi/zfcp_fc.c 2008-06-27 18:07:02.000000000 +0200 +++ b/drivers/s390/scsi/zfcp_fc.c 2008-06-27 18:07:26.000000000 +0200 @@ -520,6 +520,7 @@ int zfcp_scan_ports(struct zfcp_adapter int ret, i; struct zfcp_gpn_ft *gpn_ft; + zfcp_erp_wait(adapter); /* wait until adapter is finished with ERP */ if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT) return 0; --