]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 21:06:08 +0000 (14:06 -0700)
commit8a99112c075dd7b113ca8d4cb3ebed46bff37efc
tree8d1a14afa77e97ff89cc4cc82c9afa533022c253
parent46a6f6e31bfe72a044ccdcd7a0f263a95fb5479b
scsi: megaraid_sas: max_fw_cmds are decremented twice, remove duplicate

Orabug: 26096381

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>
(cherry picked from commit cf4e55e7be0a4c009908803ff4c3140c9822c033)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c