]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lpfc: in sli3 use configured sg_seg_cnt for sg_tablesize
authorrkennedy <dick.kennedy@avagotech.com>
Tue, 13 Oct 2015 19:48:24 +0000 (12:48 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 19 Oct 2015 16:10:57 +0000 (09:10 -0700)
Submitted by james.smart () james.smart.()@emulex.comSubmitted by Bodo Stroesser Bodo.Stroesser@emulex.com

From: Bodo Stroesser bstroesser@ts.fujitsu.com

Hi James,

We had some performance problems with RAID systems connected to LPe12k.
AFAICS, the reason is a small bug in lpfc.ko, causing the IO-size to
be smaller than expected.

The patch below fixes it for us.

Please CC me, I'm not on the list.

Best regards
Bodo

http://marc.info/?l=linux-scsi&m=144105411003735&w=2

Orabug: 22029622
From dick.kennedy@avagotech.com lpfc-10.5.0.1-11.0.0.3-1.tar.gz
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/lpfc/lpfc_init.c

index da9b6fc4b08176be257c6789b83a9169f57f546c..81bfb2d1691b2a177ede2fc3c2dca5dec2631072 100644 (file)
@@ -4994,7 +4994,7 @@ lpfc_sli_driver_resource_setup(struct lpfc_hba *phba)
 
        /* Initialize the host templates the configured values. */
        lpfc_vport_template.sg_tablesize = phba->cfg_sg_seg_cnt;
-       lpfc_template.sg_tablesize = phba->cfg_sg_seg_cnt;
+       lpfc_template_s3.sg_tablesize = phba->cfg_sg_seg_cnt;
 
        /* There are going to be 2 reserved BDEs: 1 FCP cmnd + 1 FCP rsp */
        if (phba->cfg_enable_bg) {