[SCSI] zfcp: fix: avoid race between fc_remote_port_add and scsi_add_device

Flush workqueue of a scsi host after a remote port for that host
is registered at the fc transport class. Otherwise immediate
registration of a scsi device on that host is racy.

Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by Andreas Herrmann and committed by 61c41823 ed829ad6

+2
+2
drivers/s390/scsi/zfcp_erp.c
··· 3415 "(adapter %s, wwpn=0x%016Lx)\n", 3416 zfcp_get_busid_by_port(port), 3417 port->wwpn); 3418 } 3419 zfcp_port_put(port); 3420 break;
··· 3415 "(adapter %s, wwpn=0x%016Lx)\n", 3416 zfcp_get_busid_by_port(port), 3417 port->wwpn); 3418 + else 3419 + scsi_flush_work(adapter->scsi_host); 3420 } 3421 zfcp_port_put(port); 3422 break;