mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
scsi: megaraid_sas: update can_queue only if the new value is less
Minor Optimization: No need to update HBA can_queue value if the current max FW commands is equal to earlier value. Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
50b7f5a2d0
commit
013aec66af
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ megasas_fusion_update_can_queue(struct megasas_instance *instance, int fw_boot_c
|
|||
|
||||
if (fw_boot_context == OCR_CONTEXT) {
|
||||
cur_max_fw_cmds = cur_max_fw_cmds - 1;
|
||||
if (cur_max_fw_cmds <= instance->max_fw_cmds) {
|
||||
if (cur_max_fw_cmds < instance->max_fw_cmds) {
|
||||
instance->cur_can_queue =
|
||||
cur_max_fw_cmds - (MEGASAS_FUSION_INTERNAL_CMDS +
|
||||
MEGASAS_FUSION_IOCTL_CMDS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue