Skip to content

Commit

Permalink
ocfs2: quorum: add a log for node not fenced
Browse files Browse the repository at this point in the history
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@oracle.com>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Junxiao Bi authored and Linus Torvalds committed Aug 29, 2014
1 parent 8e9801d commit 8c7b638
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions fs/ocfs2/cluster/quorum.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,18 @@ static void o2quo_make_decision(struct work_struct *work)
}

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)
Expand Down

0 comments on commit 8c7b638

Please sign in to comment.