aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2010-10-06 18:50:50 -0700
committerSunil Mushran <sunil.mushran@oracle.com>2010-10-06 18:50:50 -0700
commitd6aa1c7c9e4b48081c2302e14b0f857017461efd (patch)
tree5cb102f49e102f8cdd119c2731533f6f7a46f4b8 /fs/ocfs2/cluster
parent1f28530537f106f83e5cf7ef0193075667b6d520 (diff)
downloadkernel_samsung_smdk4412-d6aa1c7c9e4b48081c2302e14b0f857017461efd.zip
kernel_samsung_smdk4412-d6aa1c7c9e4b48081c2302e14b0f857017461efd.tar.gz
kernel_samsung_smdk4412-d6aa1c7c9e4b48081c2302e14b0f857017461efd.tar.bz2
ocfs2/cluster: Add mlogs for heartbeat up/down events
This patch adds mlogs for o2hb up and down events. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster')
-rw-r--r--fs/ocfs2/cluster/heartbeat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index f28de4b..e8676ac 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -797,6 +797,8 @@ fire_callbacks:
/* first on the list generates a callback */
if (list_empty(&o2hb_live_slots[slot->ds_node_num])) {
+ mlog(ML_HEARTBEAT, "o2hb: Add node %d to live nodes "
+ "bitmap\n", slot->ds_node_num);
set_bit(slot->ds_node_num, o2hb_live_node_bitmap);
o2hb_queue_node_event(&event, O2HB_NODE_UP_CB, node,
@@ -845,6 +847,8 @@ fire_callbacks:
/* last off the live_slot generates a callback */
list_del_init(&slot->ds_live_item);
if (list_empty(&o2hb_live_slots[slot->ds_node_num])) {
+ mlog(ML_HEARTBEAT, "o2hb: Remove node %d from live "
+ "nodes bitmap\n", slot->ds_node_num);
clear_bit(slot->ds_node_num, o2hb_live_node_bitmap);
/* node can be null */