akpm at linux-foundation.org
2014-Aug-06 20:32 UTC
[Ocfs2-devel] [patch 05/10] ocfs2: quorum: add a log for node not fenced
From: Junxiao Bi <junxiao.bi at oracle.com> Subject: 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 <junxiao.bi at oracle.com> Reviewed-by: Srinivas Eeda <srinivas.eeda at oracle.com> Cc: Mark Fasheh <mfasheh at suse.com> Cc: Joel Becker <jlbec at evilplan.org> Cc: Joseph Qi <joseph.qi at huawei.com> Signed-off-by: Andrew Morton <akpm at linux-foundation.org> --- fs/ocfs2/cluster/quorum.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff -puN fs/ocfs2/cluster/quorum.c~ocfs2-quorum-add-a-log-for-node-not-fenced fs/ocfs2/cluster/quorum.c --- a/fs/ocfs2/cluster/quorum.c~ocfs2-quorum-add-a-log-for-node-not-fenced +++ a/fs/ocfs2/cluster/quorum.c @@ -160,9 +160,18 @@ static void o2quo_make_decision(struct w } out: - spin_unlock(&qs->qs_lock); - if (fence) + if (fence) { + spin_unlock(&qs->qs_lock); o2quo_fence_self(); + } else { + mlog(ML_NOTICE, "not fencing this node, heartbeating: %d, " + "connected: %d, lowest: %d (%sreachable)\n", + qs->qs_heartbeating, qs->qs_connected, lowest_hb, + lowest_reachable ? "" : "un"); + spin_unlock(&qs->qs_lock); + + } + } static void o2quo_set_hold(struct o2quo_state *qs, u8 node) _
Mark Fasheh
2014-Aug-13 19:05 UTC
[Ocfs2-devel] [patch 05/10] ocfs2: quorum: add a log for node not fenced
On Wed, Aug 06, 2014 at 01:32:09PM -0700, Andrew Morton wrote:> From: Junxiao Bi <junxiao.bi at oracle.com> > Subject: 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.Reviewed-by: Mark Fasheh <mfasheh at suse.de> -- Mark Fasheh