Andrew Vasquez 6390d1f33f [SCSI] qla2xxx: Correct synchronization of software/firmware fcport states.
Greg Wettstein (greg@enjellic.com) noted:

	http://article.gmane.org/gmane.linux.scsi/43409

on a reboot of a previously recognized SCST target, the initiator
driver would be unable to re-recognize the device as a target.
It turns out that prior to the SCST software reloading and
returning it's "target-capable" abilities in the PRLI payload,
the HBA would be re-initialized as an initiator-only type port.
Since initiators typically classify themselves as an FCP-2
capable device, both software and firmware do not perform an
explicit logout during port-loss.  Unfortunately, as can be seen
by the failure case, when the port (now target-capable) returns,
firmware performs an ADISC without a follow-on PRLI, leaving
stale 'initiator-only' data in the firmware's port database.

Correct the discrepancy by performing the explicit logout during
the transport's request to terminate-rport-io, thus synchronizing
port states and ensuring a follow-on PRLI is performed.

Reported-by: Greg Wettstein <greg@enjellic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-08-16 10:21:09 -05:00
..
2008-06-15 11:12:20 -05:00
2008-01-11 18:22:30 -06:00
2008-01-30 13:14:02 -06:00
2008-07-26 15:17:47 -04:00
2008-06-20 14:05:49 -06:00
2008-01-30 13:14:02 -06:00
2008-01-11 18:27:59 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2007-10-19 11:53:42 -07:00
2008-07-14 15:29:34 -06:00
2008-01-30 13:14:02 -06:00
2008-02-23 09:07:32 -06:00
2007-07-18 11:16:32 -05:00
2008-07-02 15:06:25 -06:00
2008-07-30 10:21:56 -05:00
2008-08-04 21:31:34 -07:00
2008-07-04 09:52:14 +02:00
2008-02-07 18:02:44 -06:00
2008-07-26 15:14:47 -04:00
2008-07-26 15:14:49 -04:00
2007-10-19 23:22:55 +02:00