[SCSI] ibmvfc: Fix rport relogin
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 4 Feb 2009 22:13:12 +0000 (16:13 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 10 Feb 2009 16:15:18 +0000 (11:15 -0500)
commit0883e3b3a85b5860b7729f1279a52e95b87dea97
treeb31b0b01588b2927799861bf7a2c7032f7607c6b
parentd4b17a20f30faf0debbc225bfbf98dba4e351c4d
[SCSI] ibmvfc: Fix rport relogin

The ibmvfc driver has a bug in its SCN handling. If it receives
an ELS event such asn an N-Port SCN event or an unsolicited PLOGI,
or any other SCN event which causes ibmvfc_reinit_host to be called,
it is possible that we will call fc_remote_port_add for a target
that already has an rport added, which can result in duplicate
rports getting created for the same targets. Fix this by calling
fc_remote_port_rolechg in this scenario instead to report any possible
role change that may have occurred.

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