]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] zfcp: Wait for port scan to complete when setting adapter online
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Tue, 4 Nov 2008 15:35:10 +0000 (16:35 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 5 Nov 2008 17:47:19 +0000 (12:47 -0500)
commit77fd9494bce3188c20d82e45464ed9b1be83bf98
treefde00a1b349fa77a478aadb62bf91f24e63f257e
parentadc90daffbb454eeae00df92855a88ba79b5b636
[SCSI] zfcp: Wait for port scan to complete when setting adapter online

Attaching a unit immediately after setting the adapter online should
be possible. The problem right now is that the port_scan runs from a
workqueue and has not finished when the set_online call returns and
the sysfs structures for the ports are not available yet. Fix that by
waiting for the port scan to complete.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_ccw.c