All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/4] zfcp: fix: avoid race between fc_remote_port_add and scsi_add_device
@ 2006-02-11  0:43 Andreas Herrmann
  0 siblings, 0 replies; only message in thread
From: Andreas Herrmann @ 2006-02-11  0:43 UTC (permalink / raw)
  To: James Bottomley; +Cc: Linux SCSI

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>

---

 drivers/s390/scsi/zfcp_erp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

8ef4d7bd844a9ed4806bbfc18313c56045486608
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index 8ed6fcb..e3c4bdd 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -3415,6 +3415,8 @@ zfcp_erp_action_cleanup(int action, stru
 						"(adapter %s, wwpn=0x%016Lx)\n",
 						zfcp_get_busid_by_port(port),
 						port->wwpn);
+			else
+				scsi_flush_work(adapter->scsi_host);
 		}
 		zfcp_port_put(port);
 		break;
-- 
0.99.9n-g5a22

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-11  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-11  0:43 [PATCH 4/4] zfcp: fix: avoid race between fc_remote_port_add and scsi_add_device Andreas Herrmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.