]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] lpfc 8.3.37: Fixed exhausted retry for plogi to nameserver.
authorJames Smart <james.smart@emulex.com>
Thu, 3 Jan 2013 20:43:19 +0000 (15:43 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 30 Jan 2013 00:07:56 +0000 (11:07 +1100)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_els.c

index f0e2fae1214cfc6373bf856b14764dab0b8cafd9..08d156a9094feaf9c285eee47822483bc8e48633 100644 (file)
@@ -3122,6 +3122,13 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
 
                case IOERR_SEQUENCE_TIMEOUT:
                case IOERR_INVALID_RPI:
+                       if (cmd == ELS_CMD_PLOGI &&
+                           did == NameServer_DID) {
+                               /* Continue forever if plogi to */
+                               /* the nameserver fails */
+                               maxretry = 0;
+                               delay = 100;
+                       }
                        retry = 1;
                        break;
                }