]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
scsi: megaraid_sas: max_fw_cmds are decremented twice, remove duplicate
authorShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Fri, 10 Feb 2017 08:59:27 +0000 (00:59 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 13 Feb 2017 12:26:22 +0000 (07:26 -0500)
Fix to account for the reply_q_sz not exceeding the maximum commands
that the firmware can support, instance->max_fw_cmds is already
decremented in megasas_fusion_update_can_queue().  Remove the extra
decrement logic in code.

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>
drivers/scsi/megaraid/megaraid_sas_fusion.c

index 94b7a68d12cda141b54f44e261edecf74548c343..74cefaea18b2fa59dd7b9e9cf37e1b032eda47a3 100644 (file)
@@ -1284,13 +1284,6 @@ megasas_init_adapter_fusion(struct megasas_instance *instance)
 
        megasas_fusion_update_can_queue(instance, PROBE_CONTEXT);
 
-       /*
-        * Reduce the max supported cmds by 1. This is to ensure that the
-        * reply_q_sz (1 more than the max cmd that driver may send)
-        * does not exceed max cmds that the FW can support
-        */
-       instance->max_fw_cmds = instance->max_fw_cmds-1;
-
        /*
         * Only Driver's internal DCMDs and IOCTL DCMDs needs to have MFI frames
         */