Skip to content

Commit 0015437

Browse files
Sagar Biradarmartinkpetersen
authored andcommitted
scsi: aacraid: Fix performance issue on logical drives
Fix performance issue where the queue depth for SmartIOC logical volumes is set to 1, and allow the usual logical volume code to be executed Fixes: a052865 (aacraid: Set correct Queue Depth for HBA1000 RAW disks) Cc: stable@vger.kernel.org Signed-off-by: Sagar Biradar <Sagar.Biradar@microchip.com> Reviewed-by: Dave Carroll <david.carroll@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 3a487ff commit 0015437

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

drivers/scsi/aacraid/linit.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,13 +413,16 @@ static int aac_slave_configure(struct scsi_device *sdev)
413413
if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) {
414414
devtype = aac->hba_map[chn][tid].devtype;
415415

416-
if (devtype == AAC_DEVTYPE_NATIVE_RAW)
416+
if (devtype == AAC_DEVTYPE_NATIVE_RAW) {
417417
depth = aac->hba_map[chn][tid].qd_limit;
418-
else if (devtype == AAC_DEVTYPE_ARC_RAW)
418+
set_timeout = 1;
419+
goto common_config;
420+
}
421+
if (devtype == AAC_DEVTYPE_ARC_RAW) {
419422
set_qd_dev_type = true;
420-
421-
set_timeout = 1;
422-
goto common_config;
423+
set_timeout = 1;
424+
goto common_config;
425+
}
423426
}
424427

425428
if (aac->jbod && (sdev->type == TYPE_DISK))

0 commit comments

Comments
 (0)