diff options
| -rw-r--r-- | fs/ocfs2/cluster/heartbeat.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index 3415e58ff77b..12bb12ba8640 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c | |||
| @@ -1476,6 +1476,10 @@ static ssize_t o2hb_region_dev_write(struct o2hb_region *reg, | |||
| 1476 | else | 1476 | else |
| 1477 | ret = -EIO; | 1477 | ret = -EIO; |
| 1478 | 1478 | ||
| 1479 | if (hb_task && o2hb_global_heartbeat_active()) | ||
| 1480 | printk(KERN_NOTICE "o2hb: Heartbeat started on region %s\n", | ||
| 1481 | config_item_name(®->hr_item)); | ||
| 1482 | |||
| 1479 | out: | 1483 | out: |
| 1480 | if (filp) | 1484 | if (filp) |
| 1481 | fput(filp); | 1485 | fput(filp); |
| @@ -1659,6 +1663,9 @@ static void o2hb_heartbeat_group_drop_item(struct config_group *group, | |||
| 1659 | wake_up(&o2hb_steady_queue); | 1663 | wake_up(&o2hb_steady_queue); |
| 1660 | } | 1664 | } |
| 1661 | 1665 | ||
| 1666 | if (o2hb_global_heartbeat_active()) | ||
| 1667 | printk(KERN_NOTICE "o2hb: Heartbeat stopped on region %s\n", | ||
| 1668 | config_item_name(®->hr_item)); | ||
| 1662 | config_item_put(item); | 1669 | config_item_put(item); |
| 1663 | } | 1670 | } |
| 1664 | 1671 | ||
| @@ -1745,7 +1752,7 @@ ssize_t o2hb_heartbeat_group_mode_store(struct o2hb_heartbeat_group *group, | |||
| 1745 | 1752 | ||
| 1746 | ret = o2hb_global_hearbeat_mode_set(i); | 1753 | ret = o2hb_global_hearbeat_mode_set(i); |
| 1747 | if (!ret) | 1754 | if (!ret) |
| 1748 | printk(KERN_NOTICE "ocfs2: Heartbeat mode set to %s\n", | 1755 | printk(KERN_NOTICE "o2hb: Heartbeat mode set to %s\n", |
| 1749 | o2hb_heartbeat_mode_desc[i]); | 1756 | o2hb_heartbeat_mode_desc[i]); |
| 1750 | return count; | 1757 | return count; |
| 1751 | } | 1758 | } |
