From: rkennedy Date: Tue, 13 Oct 2015 19:48:24 +0000 (-0700) Subject: lpfc: in sli3 use configured sg_seg_cnt for sg_tablesize X-Git-Tag: v4.1.12-92~249^2~3^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e2c6b78446d7541a2ad81fadecbfcb31470182ce;p=users%2Fjedix%2Flinux-maple.git lpfc: in sli3 use configured sg_seg_cnt for sg_tablesize 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 --- diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index da9b6fc4b0817..81bfb2d1691b2 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -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) {