Skip to content

Commit

Permalink
ocfs2: avoid a pointless delay in o2cb_cluster_check()
Browse files Browse the repository at this point in the history
Fix an off-by-one when attempting to avoid an msleep() on the final loop
iteration.

Signed-off-by: Daeseok Youn <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
daeseokyoun authored and torvalds committed Apr 14, 2015
1 parent 43ee9ca commit 7a83464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/stack_o2cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7a83464

Please sign in to comment.