From: Christof Schmitt Date: Tue, 4 Nov 2008 15:35:10 +0000 (+0100) Subject: [SCSI] zfcp: Wait for port scan to complete when setting adapter online X-Git-Tag: v2.6.28-rc5~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77fd9494bce3188c20d82e45464ed9b1be83bf98;p=pandora-kernel.git [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 Signed-off-by: Swen Schillig Signed-off-by: James Bottomley --- Reading git-diff-tree failed