scsi: megaraid_sas: Re-use max_mfi_cmds to calculate queue sizes
In megasas_init_adapter_fusion(), max_mfi_cmds is being calcuated as (MEGASAS_FUSION_INTERNAL_CMDS + MEGASAS_FUSION_IOCTL_CMDS). max_mfi_cmds can be used in megasas_configure_queue_sizes. Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
81b7645223
Коммит
9fb9856116
|
@ -1564,9 +1564,7 @@ void megasas_configure_queue_sizes(struct megasas_instance *instance)
|
||||||
else
|
else
|
||||||
instance->max_mpt_cmds = instance->max_fw_cmds;
|
instance->max_mpt_cmds = instance->max_fw_cmds;
|
||||||
|
|
||||||
instance->max_scsi_cmds = instance->max_fw_cmds -
|
instance->max_scsi_cmds = instance->max_fw_cmds - instance->max_mfi_cmds;
|
||||||
(MEGASAS_FUSION_INTERNAL_CMDS +
|
|
||||||
MEGASAS_FUSION_IOCTL_CMDS);
|
|
||||||
instance->cur_can_queue = instance->max_scsi_cmds;
|
instance->cur_can_queue = instance->max_scsi_cmds;
|
||||||
instance->host->can_queue = instance->cur_can_queue;
|
instance->host->can_queue = instance->cur_can_queue;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче