Skip to contentSkip to conversation

ocfs2: avoid a pointless delay in o2cb_cluster_check()

PATCH New Daeseok Youn 1 participant 1 message Feb 22, 2015 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: avoid a pointless delay in o2cb_cluster_check()

---
 fs/ocfs2/stack_o2cb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/stack_o2cb.c +1 -1
index 1724d43..220cae7 100644
@@ -295,7 +295,7 @@ static int o2cb_cluster_check(void)
 		set_bit(node_num, netmap);
 		if (!memcmp(hbmap, netmap, sizeof(hbmap)))
 			return 0;
-		if (i < O2CB_MAP_STABILIZE_COUNT)
+		if (i < O2CB_MAP_STABILIZE_COUNT - 1)
 			msleep(1000);
 	}
 
Signature · 1 line
1.7.1