diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2008-12-17 22:17:42 (GMT) |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 18:39:14 (GMT) |
commit | 87d3d3f3931f3e0fca44fbb5c06ad45fc4dca9bc (patch) | |
tree | 3f707f7b29905975b054906df0317f833cd411a0 /fs/ocfs2/cluster/nodemanager.c | |
parent | 20bec8ab1458c24bed0d5492ee15d87807fc415a (diff) | |
download | linux-fsl-qoriq-87d3d3f3931f3e0fca44fbb5c06ad45fc4dca9bc.tar.xz |
ocfs2/hb: Expose the list of heartbeating nodes via debugfs
This patch creates a debugfs file, o2hb/livesnodes, which exposes the
aggregate list of heartbeating node across all heartbeat regions.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/cluster/nodemanager.c')
-rw-r--r-- | fs/ocfs2/cluster/nodemanager.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodemanager.c index 70e8fa9..7ee6188 100644 --- a/fs/ocfs2/cluster/nodemanager.c +++ b/fs/ocfs2/cluster/nodemanager.c @@ -881,6 +881,7 @@ static void __exit exit_o2nm(void) o2cb_sys_shutdown(); o2net_exit(); + o2hb_exit(); } static int __init init_o2nm(void) @@ -889,11 +890,13 @@ static int __init init_o2nm(void) cluster_print_version(); - o2hb_init(); + ret = o2hb_init(); + if (ret) + goto out; ret = o2net_init(); if (ret) - goto out; + goto out_o2hb; ret = o2net_register_hb_callbacks(); if (ret) @@ -916,6 +919,8 @@ out_callbacks: o2net_unregister_hb_callbacks(); out_o2net: o2net_exit(); +out_o2hb: + o2hb_exit(); out: return ret; } |