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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 8da8fc69227..62585870f08 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -5563,9 +5563,12 @@ lpfc_sli4_read_config(struct lpfc_hba *phba)
5563 mempool_free(pmb, phba->mbox_mem_pool); 5563 mempool_free(pmb, phba->mbox_mem_pool);
5564 5564
5565 /* Reset the DFT_HBA_Q_DEPTH to the max xri */ 5565 /* Reset the DFT_HBA_Q_DEPTH to the max xri */
5566 if (phba->cfg_hba_queue_depth > (phba->sli4_hba.max_cfg_param.max_xri)) 5566 if (phba->cfg_hba_queue_depth >
5567 (phba->sli4_hba.max_cfg_param.max_xri -
5568 lpfc_sli4_get_els_iocb_cnt(phba)))
5567 phba->cfg_hba_queue_depth = 5569 phba->cfg_hba_queue_depth =
5568 phba->sli4_hba.max_cfg_param.max_xri; 5570 phba->sli4_hba.max_cfg_param.max_xri -
5571 lpfc_sli4_get_els_iocb_cnt(phba);
5569 return rc; 5572 return rc;
5570} 5573}
5571 5574