1 From 0015437cc046e5ec2b57b00ff8312b8d432eac7c Mon Sep 17 00:00:00 2001
2 From: Sagar Biradar <sagar.biradar@microchip.com>
3 Date: Thu, 7 Mar 2019 23:26:41 -0800
4 Subject: scsi: aacraid: Fix performance issue on logical drives
6 From: Sagar Biradar <sagar.biradar@microchip.com>
8 commit 0015437cc046e5ec2b57b00ff8312b8d432eac7c upstream.
10 Fix performance issue where the queue depth for SmartIOC logical volumes is
11 set to 1, and allow the usual logical volume code to be executed
13 Fixes: a052865fe287 (aacraid: Set correct Queue Depth for HBA1000 RAW disks)
14 Cc: stable@vger.kernel.org
15 Signed-off-by: Sagar Biradar <Sagar.Biradar@microchip.com>
16 Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
17 Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 drivers/scsi/aacraid/linit.c | 13 ++++++++-----
22 1 file changed, 8 insertions(+), 5 deletions(-)
24 --- a/drivers/scsi/aacraid/linit.c
25 +++ b/drivers/scsi/aacraid/linit.c
26 @@ -413,13 +413,16 @@ static int aac_slave_configure(struct sc
27 if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) {
28 devtype = aac->hba_map[chn][tid].devtype;
30 - if (devtype == AAC_DEVTYPE_NATIVE_RAW)
31 + if (devtype == AAC_DEVTYPE_NATIVE_RAW) {
32 depth = aac->hba_map[chn][tid].qd_limit;
33 - else if (devtype == AAC_DEVTYPE_ARC_RAW)
37 + if (devtype == AAC_DEVTYPE_ARC_RAW) {
38 set_qd_dev_type = true;
47 if (aac->jbod && (sdev->type == TYPE_DISK))