All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 03/12] megaraid_sas : Update balance count in driver to be in sync of firmware
@ 2013-05-22  7:00 Sumit.Saxena
  0 siblings, 0 replies; only message in thread
From: Sumit.Saxena @ 2013-05-22  7:00 UTC (permalink / raw)
  To: linux-scsi; +Cc: jbottomley, kashyap.desai, aradford

Update balance count in driver to be in sync of firmware.

Signed-off-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
---
diff --git a/drivers/scsi/megaraid/megaraid_sas_fp.c b/drivers/scsi/megaraid/megaraid_sas_fp.c
index a11df82..b06a240 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fp.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fp.c
@@ -503,8 +503,9 @@ u8 megasas_get_best_arm(struct LD_LOAD_BALANCE_INFO *lbInfo, u8 arm, u64 block,
 	diff1 = ABS_DIFF(block, lbInfo->last_accessed_block[1]);
 	bestArm = (diff0 <= diff1 ? 0 : 1);
 
-	if ((bestArm == arm && pend0 > pend1 + 16)  ||
-	    (bestArm != arm && pend1 > pend0 + 16))
+	/*Make balance count from 16 to 4 to keep driver in sync with Firmware*/
+	if ((bestArm == arm && pend0 > pend1 + 4)  ||
+	    (bestArm != arm && pend1 > pend0 + 4))
 		bestArm ^= 1;
 
 	/* Update the last accessed block on the correct pd */


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-22 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-22  7:00 [PATCH 03/12] megaraid_sas : Update balance count in driver to be in sync of firmware Sumit.Saxena

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.