summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorShivasharan S2017-10-19 11:49:04 +0200
committerMartin K. Petersen2017-10-25 10:55:31 +0200
commit2dba66bf8ecb2dd07b721465c25f537acff6eaf1 (patch)
treeedcd0135a7dd87b3818997a5a2ba6ae226f3442d /drivers
parentscsi: megaraid_sas: Retry with reduced queue depth when alloc fails for highe... (diff)
downloadkernel-qcow2-linux-2dba66bf8ecb2dd07b721465c25f537acff6eaf1.tar.gz
kernel-qcow2-linux-2dba66bf8ecb2dd07b721465c25f537acff6eaf1.tar.xz
kernel-qcow2-linux-2dba66bf8ecb2dd07b721465c25f537acff6eaf1.zip
scsi: megaraid_sas: Do not limit queue_depth to 1k in non-RDPQ mode
Driver load fails if memory allocation for request frame pool fails due to the higher queue_depth requirement. The driver now allows dynamically reducing queue_depth if memory allocations fail rather than failing load. With this, there is no need to limit queue_depth to 1K. Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_fusion.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 8b7a08af275e..745da54c11aa 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -272,10 +272,6 @@ megasas_fusion_update_can_queue(struct megasas_instance *instance, int fw_boot_c
instance->max_fw_cmds = cur_max_fw_cmds;
instance->ldio_threshold = ldio_threshold;
- if (!instance->is_rdpq)
- instance->max_fw_cmds =
- min_t(u16, instance->max_fw_cmds, 1024);
-
if (reset_devices)
instance->max_fw_cmds = min(instance->max_fw_cmds,
(u16)MEGASAS_KDUMP_QUEUE_DEPTH);