[SCSI] libfc: improve flogi retries to avoid lport stuck
authorVasu Dev <vasu.dev@intel.com>
Fri, 28 Oct 2011 18:34:23 +0000 (11:34 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 31 Oct 2011 09:27:43 +0000 (13:27 +0400)
commit907c07d45199f954ddcf66c2c9763c87d012cb15
tree4d25bde865cc84feebf93d73c7dd186a6e15be2a
parentb6e3c84034b93e6acc895711f74730e235dfe9d2
[SCSI] libfc: improve flogi retries to avoid lport stuck

Adds more cases to do flogi retry, now also retry
on getting bad response due to either no ELS response
or flogi response payload length not large enough.
In those cases flogi was not retried and that
was leaving lport offline.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Tested-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/libfc/fc_lport.c