提交 7a834642 编写于 作者: D Daeseok Youn 提交者: Linus Torvalds

ocfs2: avoid a pointless delay in o2cb_cluster_check()

Fix an off-by-one when attempting to avoid an msleep() on the final loop
iteration.
Signed-off-by: NDaeseok Youn <daeseok.youn@gmail.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 43ee9cad
...@@ -295,7 +295,7 @@ static int o2cb_cluster_check(void) ...@@ -295,7 +295,7 @@ static int o2cb_cluster_check(void)
set_bit(node_num, netmap); set_bit(node_num, netmap);
if (!memcmp(hbmap, netmap, sizeof(hbmap))) if (!memcmp(hbmap, netmap, sizeof(hbmap)))
return 0; return 0;
if (i < O2CB_MAP_STABILIZE_COUNT) if (i < O2CB_MAP_STABILIZE_COUNT - 1)
msleep(1000); msleep(1000);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册