Double WQ element count to keep iops up

On embedded io queues, use the default element count, which is twice the
size of the default large WQE element count.

Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
---
 drivers/scsi/lpfc/lpfc_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index adf61b43..64b6313 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -7349,7 +7349,7 @@ lpfc_sli4_queue_create(struct lpfc_hba *phba)
                if (phba->fcp_embed_io) {
                        qdesc = lpfc_sli4_queue_alloc(phba,
                                                      LPFC_WQE128_SIZE,
-                                                     LPFC_WQE128_DEF_COUNT);
+                                                     phba->sli4_hba.wq_ecount);
                } else {
                        qdesc = lpfc_sli4_queue_alloc(phba,
                                                      phba->sli4_hba.wq_esize,
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to