ocfs2/cluster: Add mlogs for heartbeat up/down events
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 7 Oct 2010 01:50:50 +0000 (18:50 -0700)
committerSunil Mushran <sunil.mushran@oracle.com>
Thu, 7 Oct 2010 01:50:50 +0000 (18:50 -0700)
This patch adds mlogs for o2hb up and down events.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
fs/ocfs2/cluster/heartbeat.c

index f28de4b09c6b27acbc8060f16beae6aacf83dd01..e8676accf9022dbd85f75c6f77ea1e500979e872 100644 (file)
@@ -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 */