Skip to content

Commit 8c7b638

Browse files
biger410torvalds
authored andcommitted
ocfs2: quorum: add a log for node not fenced
For debug use, we can see from the log whether the fence decision is made and why it is not fenced. Signed-off-by: Junxiao Bi <[email protected]> Reviewed-by: Srinivas Eeda <[email protected]> Reviewed-by: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Joseph Qi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8e9801d commit 8c7b638

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

fs/ocfs2/cluster/quorum.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,18 @@ static void o2quo_make_decision(struct work_struct *work)
160160
}
161161

162162
out:
163-
spin_unlock(&qs->qs_lock);
164-
if (fence)
163+
if (fence) {
164+
spin_unlock(&qs->qs_lock);
165165
o2quo_fence_self();
166+
} else {
167+
mlog(ML_NOTICE, "not fencing this node, heartbeating: %d, "
168+
"connected: %d, lowest: %d (%sreachable)\n",
169+
qs->qs_heartbeating, qs->qs_connected, lowest_hb,
170+
lowest_reachable ? "" : "un");
171+
spin_unlock(&qs->qs_lock);
172+
173+
}
174+
166175
}
167176

168177
static void o2quo_set_hold(struct o2quo_state *qs, u8 node)

0 commit comments

Comments
 (0)