diff options
author | James Smart <james.smart@emulex.com> | 2015-04-07 15:07:23 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 07:49:52 -0700 |
commit | 6eae430328d23e2d6adaa649a7c0bac18e04dda8 (patch) | |
tree | c7a90f0a23fbcb5a821e5f594410e27423d481aa /drivers/scsi/lpfc | |
parent | be6bb94100dc6803a530e20aad05360e6267f56b (diff) | |
download | talos-obmc-linux-6eae430328d23e2d6adaa649a7c0bac18e04dda8.tar.gz talos-obmc-linux-6eae430328d23e2d6adaa649a7c0bac18e04dda8.zip |
lpfc: Fix internal loopback failure.
Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index ba5da266a128..1003b5b51fd2 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -3337,7 +3337,11 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, /* FLOGI retry policy */ retry = 1; /* retry FLOGI forever */ - maxretry = 0; + if (phba->link_flag != LS_LOOPBACK_MODE) + maxretry = 0; + else + maxretry = 2; + if (cmdiocb->retry >= 100) delay = 5000; else if (cmdiocb->retry >= 32) |