aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 61925836a09e..d7385d258f78 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -853,12 +853,19 @@ lpfc_hb_mbox_cmpl(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq)
853void 853void
854lpfc_hb_timeout_handler(struct lpfc_hba *phba) 854lpfc_hb_timeout_handler(struct lpfc_hba *phba)
855{ 855{
856 struct lpfc_vport **vports;
856 LPFC_MBOXQ_t *pmboxq; 857 LPFC_MBOXQ_t *pmboxq;
857 struct lpfc_dmabuf *buf_ptr; 858 struct lpfc_dmabuf *buf_ptr;
858 int retval; 859 int retval, i;
859 struct lpfc_sli *psli = &phba->sli; 860 struct lpfc_sli *psli = &phba->sli;
860 LIST_HEAD(completions); 861 LIST_HEAD(completions);
861 862
863 vports = lpfc_create_vport_work_array(phba);
864 if (vports != NULL)
865 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
866 lpfc_rcv_seq_check_edtov(vports[i]);
867 lpfc_destroy_vport_work_array(phba, vports);
868
862 if ((phba->link_state == LPFC_HBA_ERROR) || 869 if ((phba->link_state == LPFC_HBA_ERROR) ||
863 (phba->pport->load_flag & FC_UNLOADING) || 870 (phba->pport->load_flag & FC_UNLOADING) ||
864 (phba->pport->fc_flag & FC_OFFLINE_MODE)) 871 (phba->pport->fc_flag & FC_OFFLINE_MODE))
@@ -3519,7 +3526,7 @@ lpfc_sli4_driver_resource_setup(struct lpfc_hba *phba)
3519 /* Driver internel slow-path CQ Event pool */ 3526 /* Driver internel slow-path CQ Event pool */
3520 INIT_LIST_HEAD(&phba->sli4_hba.sp_cqe_event_pool); 3527 INIT_LIST_HEAD(&phba->sli4_hba.sp_cqe_event_pool);
3521 /* Response IOCB work queue list */ 3528 /* Response IOCB work queue list */
3522 INIT_LIST_HEAD(&phba->sli4_hba.sp_rspiocb_work_queue); 3529 INIT_LIST_HEAD(&phba->sli4_hba.sp_queue_event);
3523 /* Asynchronous event CQ Event work queue list */ 3530 /* Asynchronous event CQ Event work queue list */
3524 INIT_LIST_HEAD(&phba->sli4_hba.sp_asynce_work_queue); 3531 INIT_LIST_HEAD(&phba->sli4_hba.sp_asynce_work_queue);
3525 /* Fast-path XRI aborted CQ Event work queue list */ 3532 /* Fast-path XRI aborted CQ Event work queue list */