[SCSI] zfcp: wait on SCSI work to be finished before proceeding with init dev
commit091694a556d168dc9df4d79e3a40116550b183cf
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 1 Oct 2008 10:42:25 +0000 (1 12:42 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Oct 2008 17:11:56 +0000 (3 12:11 -0500)
treed682fea39421269f67287e5dee5c6048247f08dc
parent9fb3cd86e4870d54d71a80323e97c48df4de05bd
[SCSI] zfcp: wait on SCSI work to be finished before proceeding with init dev

Due to the character of a scheduled work we cannot guarantee the
LUN register to be finished before an initial device tries to use it.
Therefor we have to wait for PENDING_SCSI_WORK flag to be cleared
before proceeding.

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