lpfc: Fix for discovery failure in PT2PT when FLOGI's ELS ACC response gets aborted
authorJames Smart <james.smart@avagotech.com>
Mon, 31 Aug 2015 20:48:18 +0000 (16:48 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 27 Oct 2015 01:18:59 +0000 (10:18 +0900)
commiteec3d3121988fa9c24f50ece81244ca1c85b7c25
tree0b74077df7f08835365b249a874503b07b077aad
parentd38dd52c79bc117a2ba7c27949d50721adc9d1d3
lpfc: Fix for discovery failure in PT2PT when FLOGI's ELS ACC response gets aborted

Fix for discovery failure in PT2PT when FLOGI's ELS ACC response gets aborted

Change login state machine to:
- Restart FLOGI if prior is ABTS'd
- Reject incoming FLOGIs if we have one pending

The above ensures that we always finish FLOGI processing, regardless
of who initated FLOGI, before processing PLOGI's.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/lpfc/lpfc_els.c