]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/scsi-aacraid-fix-performance-issue-on-logical-drives.patch
Linux 4.9.165
[thirdparty/kernel/stable-queue.git] / queue-4.14 / scsi-aacraid-fix-performance-issue-on-logical-drives.patch
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
5
6 From: Sagar Biradar <sagar.biradar@microchip.com>
7
8 commit 0015437cc046e5ec2b57b00ff8312b8d432eac7c upstream.
9
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
12
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>
19
20 ---
21 drivers/scsi/aacraid/linit.c | 13 ++++++++-----
22 1 file changed, 8 insertions(+), 5 deletions(-)
23
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;
29
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)
34 + set_timeout = 1;
35 + goto common_config;
36 + }
37 + if (devtype == AAC_DEVTYPE_ARC_RAW) {
38 set_qd_dev_type = true;
39 -
40 - set_timeout = 1;
41 - goto common_config;
42 + set_timeout = 1;
43 + goto common_config;
44 + }
45 }
46
47 if (aac->jbod && (sdev->type == TYPE_DISK))