diff options
author | Shivasharan S <shivasharan.srikanteshwara@broadcom.com> | 2017-02-10 03:59:27 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-13 07:26:22 -0500 |
commit | cf4e55e7be0a4c009908803ff4c3140c9822c033 (patch) | |
tree | 44709eebb5e4bd98726ba9f1d87dd7aaea727dfc | |
parent | 013aec66afaa51581d4b41887fe418b94c54bc51 (diff) |
scsi: megaraid_sas: max_fw_cmds are decremented twice, remove duplicate
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>
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 94b7a68d12cd..74cefaea18b2 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c | |||
@@ -1285,13 +1285,6 @@ megasas_init_adapter_fusion(struct megasas_instance *instance) | |||
1285 | megasas_fusion_update_can_queue(instance, PROBE_CONTEXT); | 1285 | megasas_fusion_update_can_queue(instance, PROBE_CONTEXT); |
1286 | 1286 | ||
1287 | /* | 1287 | /* |
1288 | * Reduce the max supported cmds by 1. This is to ensure that the | ||
1289 | * reply_q_sz (1 more than the max cmd that driver may send) | ||
1290 | * does not exceed max cmds that the FW can support | ||
1291 | */ | ||
1292 | instance->max_fw_cmds = instance->max_fw_cmds-1; | ||
1293 | |||
1294 | /* | ||
1295 | * Only Driver's internal DCMDs and IOCTL DCMDs needs to have MFI frames | 1288 | * Only Driver's internal DCMDs and IOCTL DCMDs needs to have MFI frames |
1296 | */ | 1289 | */ |
1297 | instance->max_mfi_cmds = | 1290 | instance->max_mfi_cmds = |