Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sunil Mushran committed Oct 7, 2010
1 parent 1f28530 commit d6aa1c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/ocfs2/cluster/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ static int o2hb_check_slot(struct o2hb_region *reg,

/* 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,
Expand Down Expand Up @@ -845,6 +847,8 @@ static int o2hb_check_slot(struct o2hb_region *reg,
/* 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 */
Expand Down

0 comments on commit d6aa1c7

Please sign in to comment.