[SCSI] lpfc 8.3.38: Fixed PT2PT bring up problem for FC SLI4.
authorJames Smart <james.smart@emulex.com>
Fri, 1 Mar 2013 21:37:29 +0000 (16:37 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Apr 2013 22:20:29 +0000 (15:20 -0700)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_hbadisc.c

index d489a0da3c9d8afebec45824a386959fec6172aa..8ab3e9622714273b2d8e42881769cafc99109ec5 100644 (file)
@@ -691,10 +691,12 @@ lpfc_work_done(struct lpfc_hba *phba)
                        /* Set the lpfc data pending flag */
                        set_bit(LPFC_DATA_READY, &phba->data_flags);
                } else {
-                       pring->flag &= ~LPFC_DEFERRED_RING_EVENT;
-                       lpfc_sli_handle_slow_ring_event(phba, pring,
-                                                       (status &
-                                                        HA_RXMASK));
+                       if (phba->link_state >= LPFC_LINK_UP) {
+                               pring->flag &= ~LPFC_DEFERRED_RING_EVENT;
+                               lpfc_sli_handle_slow_ring_event(phba, pring,
+                                                               (status &
+                                                               HA_RXMASK));
+                       }
                }
                if ((phba->sli_rev == LPFC_SLI_REV4) &
                                 (!list_empty(&pring->txq)))
This page took 0.029304 seconds and 5 git commands to generate.