Skip to content
Snippets Groups Projects
Commit 7a834642 authored by Daeseok Youn's avatar Daeseok Youn Committed by Linus Torvalds
Browse files

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 43ee9cad
No related branches found
No related tags found
No related merge requests found
...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment