aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/tcp.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2007-06-15 00:40:49 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-07-10 20:19:40 -0400
commit14829422be6d6b6721f61b1e749acf5a9cb664d8 (patch)
tree4a8c931b431653aa5e35523f43ebcddffa8641b8 /fs/ocfs2/cluster/tcp.c
parent631d1febab8e546e3bb800bdfe2c212b8adf87de (diff)
ocfs2: Depend on configfs heartbeat items.
ocfs2 mounts require a heartbeat region. Use the new configfs_depend_item() facility to actually depend on them so they can't go away from under us. First, teach cluster/nodemanager.c to depend an item on the o2cb subsystem. Then teach o2hb_register_callbacks to take a UUID and depend on the appropriate region. Finally, teach all users of o2hb to pass a UUID or NULL if they don't require a pin. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/tcp.c')
-rw-r--r--fs/ocfs2/cluster/tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
index 0b229a9c7952..d58c7dddb853 100644
--- a/fs/ocfs2/cluster/tcp.c
+++ b/fs/ocfs2/cluster/tcp.c
@@ -1638,8 +1638,8 @@ static void o2net_hb_node_up_cb(struct o2nm_node *node, int node_num,
1638 1638
1639void o2net_unregister_hb_callbacks(void) 1639void o2net_unregister_hb_callbacks(void)
1640{ 1640{
1641 o2hb_unregister_callback(&o2net_hb_up); 1641 o2hb_unregister_callback(NULL, &o2net_hb_up);
1642 o2hb_unregister_callback(&o2net_hb_down); 1642 o2hb_unregister_callback(NULL, &o2net_hb_down);
1643} 1643}
1644 1644
1645int o2net_register_hb_callbacks(void) 1645int o2net_register_hb_callbacks(void)
@@ -1651,9 +1651,9 @@ int o2net_register_hb_callbacks(void)
1651 o2hb_setup_callback(&o2net_hb_up, O2HB_NODE_UP_CB, 1651 o2hb_setup_callback(&o2net_hb_up, O2HB_NODE_UP_CB,
1652 o2net_hb_node_up_cb, NULL, O2NET_HB_PRI); 1652 o2net_hb_node_up_cb, NULL, O2NET_HB_PRI);
1653 1653
1654 ret = o2hb_register_callback(&o2net_hb_up); 1654 ret = o2hb_register_callback(NULL, &o2net_hb_up);
1655 if (ret == 0) 1655 if (ret == 0)
1656 ret = o2hb_register_callback(&o2net_hb_down); 1656 ret = o2hb_register_callback(NULL, &o2net_hb_down);
1657 1657
1658 if (ret) 1658 if (ret)
1659 o2net_unregister_hb_callbacks(); 1659 o2net_unregister_hb_callbacks();