From 2a12655af722d97b784edf99e68e385574b3d569 Mon Sep 17 00:00:00 2001 From: James Smart Date: Thu, 31 Mar 2016 14:12:30 -0700 Subject: [PATCH] lpfc: Utilize embedded CDB logic to minimize IO latency Orabug: 25486030 Pass cmd iu payloads inline to adapter job structure rather than as separate dma buffers. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Signed-off-by: Martin K. Petersen (cherry picked from commit b5c539583988b70bddea73f333c640fc93a62e88) Signed-off-by: Brian Maly --- drivers/scsi/lpfc/lpfc_sli.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 4b8cbd225cbc..42908b04b42c 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -8732,6 +8732,12 @@ __lpfc_sli_issue_iocb_s4(struct lpfc_hba *phba, uint32_t ring_number, struct lpfc_sli_ring *pring = &phba->sli.ring[ring_number]; + /* + * The WQE can be either 64 or 128 bytes, + * so allocate space on the stack assuming the largest. + */ + wqe = (union lpfc_wqe *)&wqe128; + /* * The WQE can be either 64 or 128 bytes, * so allocate space on the stack assuming the largest. -- 2.50.1