ibmvfc: Fix endless PRLI loop in discovery
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 18 Jun 2009 14:06:55 +0000 (09:06 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 21 Jun 2009 16:09:57 +0000 (11:09 -0500)
commit017b2ae33c0fc7d70320cc7f1cce0efb6ce8d929
tree1f598b0900ab8b3cdf4093c032f6fdf90feeca78
parentf1d7fb7a8ab55357b6c7d44a53f644a043680ed1
ibmvfc: Fix endless PRLI loop in discovery

Fixes a problem seen where sending a PRLI to a target
resulted in it sending a LOGO. This caused the ibmvfc
driver to go back through discovery again, which caused
another PRLI attempt, which caused another LOGO. Fix this
behavior by ignoring LOGO if we haven't even logged into
the target yet.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h