[SCSI] zfcp: Fix opening of wka ports
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Wed, 26 Nov 2008 17:07:36 +0000 (18:07 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 1 Dec 2008 16:16:59 +0000 (10:16 -0600)
commit1c1cba17a9078c83a80a099bc207b208d664a13a
tree2b49370fa8b20d488f3d7492d20981acb3db149a
parentbce02614cd1b3d669af1195695e503e818b60fae
[SCSI] zfcp: Fix opening of wka ports

Running two wka_port_get calls in parallel could issue two open_port
requests, overwriting the port handle. Don't issue an open_port
for the state PORT_OPENING, and only read the data from GOOD
responses.

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