Skip to contentSkip to conversation

megaraid_sas : Fix validHandles check in io path

PATCH In review [email protected] 2 participants 2 messages Aug 31, 2015 – Sep 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 8/10 megaraid_sas : Fix validHandles check in io path

Syncro firmware supports round robin IO switch on dual path. For this driver use validHandles as a check for dual path. This check suppose to be > 1 (not > 2)

Without this patch, earlier driver code does not use dual path functionality.

---
 drivers/scsi/megaraid/megaraid_sas_fusion.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
index 1d73d30..1398950 100644
@@ -1684,7 +1684,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
 			scp->SCp.Status &= ~MEGASAS_LOAD_BALANCE_FLAG;
 
 		if ((raidLUN[0] == 1) &&
-			(local_map_ptr->raidMap.devHndlInfo[io_info.pd_after_lb].validHandles > 2)) {
+			(local_map_ptr->raidMap.devHndlInfo[io_info.pd_after_lb].validHandles > 1)) {
 			instance->dev_handle = !(instance->dev_handle);
 			io_info.devHandle =
 				local_map_ptr->raidMap.devHndlInfo[io_info.pd_after_lb].devHandle[instance->dev_handle];
Signature · 1 line
1.7.1
Reviewed-by on v3 8/10
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sumit" == sumit saxena <[email protected]> writes:

Sumit> Syncro firmware supports round robin IO switch on dual path. For Sumit> this driver use validHandles as a check for dual path. This check Sumit> suppose to be > 1 (not > 2)

Sumit> Without this patch, earlier driver code does not use dual path Sumit> functionality.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering