1 /* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
4 * Copyright (C) 2004, 2005 Oracle. All rights reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 021110-1307, USA.
22 #include <linux/slab.h>
23 #include <linux/kernel.h>
24 #include <linux/module.h>
25 #include <linux/configfs.h>
28 #include "nodemanager.h"
29 #include "heartbeat.h"
33 /* for now we operate under the assertion that there can be only one
34 * cluster active at a time. Changing this will require trickling
35 * cluster references throughout where nodes are looked up */
36 struct o2nm_cluster
*o2nm_single_cluster
= NULL
;
38 char *o2nm_fence_method_desc
[O2NM_FENCE_METHODS
] = {
39 "reset", /* O2NM_FENCE_RESET */
40 "panic", /* O2NM_FENCE_PANIC */
43 struct o2nm_node
*o2nm_get_node_by_num(u8 node_num
)
45 struct o2nm_node
*node
= NULL
;
47 if (node_num
>= O2NM_MAX_NODES
|| o2nm_single_cluster
== NULL
)
50 read_lock(&o2nm_single_cluster
->cl_nodes_lock
);
51 node
= o2nm_single_cluster
->cl_nodes
[node_num
];
53 config_item_get(&node
->nd_item
);
54 read_unlock(&o2nm_single_cluster
->cl_nodes_lock
);
58 EXPORT_SYMBOL_GPL(o2nm_get_node_by_num
);
60 int o2nm_configured_node_map(unsigned long *map
, unsigned bytes
)
62 struct o2nm_cluster
*cluster
= o2nm_single_cluster
;
64 BUG_ON(bytes
< (sizeof(cluster
->cl_nodes_bitmap
)));
69 read_lock(&cluster
->cl_nodes_lock
);
70 memcpy(map
, cluster
->cl_nodes_bitmap
, sizeof(cluster
->cl_nodes_bitmap
));
71 read_unlock(&cluster
->cl_nodes_lock
);
75 EXPORT_SYMBOL_GPL(o2nm_configured_node_map
);
77 static struct o2nm_node
*o2nm_node_ip_tree_lookup(struct o2nm_cluster
*cluster
,
79 struct rb_node
***ret_p
,
80 struct rb_node
**ret_parent
)
82 struct rb_node
**p
= &cluster
->cl_node_ip_tree
.rb_node
;
83 struct rb_node
*parent
= NULL
;
84 struct o2nm_node
*node
, *ret
= NULL
;
90 node
= rb_entry(parent
, struct o2nm_node
, nd_ip_node
);
92 cmp
= memcmp(&ip_needle
, &node
->nd_ipv4_address
,
106 if (ret_parent
!= NULL
)
107 *ret_parent
= parent
;
112 struct o2nm_node
*o2nm_get_node_by_ip(__be32 addr
)
114 struct o2nm_node
*node
= NULL
;
115 struct o2nm_cluster
*cluster
= o2nm_single_cluster
;
120 read_lock(&cluster
->cl_nodes_lock
);
121 node
= o2nm_node_ip_tree_lookup(cluster
, addr
, NULL
, NULL
);
123 config_item_get(&node
->nd_item
);
124 read_unlock(&cluster
->cl_nodes_lock
);
129 EXPORT_SYMBOL_GPL(o2nm_get_node_by_ip
);
131 void o2nm_node_put(struct o2nm_node
*node
)
133 config_item_put(&node
->nd_item
);
135 EXPORT_SYMBOL_GPL(o2nm_node_put
);
137 void o2nm_node_get(struct o2nm_node
*node
)
139 config_item_get(&node
->nd_item
);
141 EXPORT_SYMBOL_GPL(o2nm_node_get
);
143 u8
o2nm_this_node(void)
145 u8 node_num
= O2NM_MAX_NODES
;
147 if (o2nm_single_cluster
&& o2nm_single_cluster
->cl_has_local
)
148 node_num
= o2nm_single_cluster
->cl_local_node
;
152 EXPORT_SYMBOL_GPL(o2nm_this_node
);
154 /* node configfs bits */
156 static struct o2nm_cluster
*to_o2nm_cluster(struct config_item
*item
)
159 container_of(to_config_group(item
), struct o2nm_cluster
,
164 static struct o2nm_node
*to_o2nm_node(struct config_item
*item
)
166 return item
? container_of(item
, struct o2nm_node
, nd_item
) : NULL
;
169 static void o2nm_node_release(struct config_item
*item
)
171 struct o2nm_node
*node
= to_o2nm_node(item
);
175 static ssize_t
o2nm_node_num_show(struct config_item
*item
, char *page
)
177 return sprintf(page
, "%d\n", to_o2nm_node(item
)->nd_num
);
180 static struct o2nm_cluster
*to_o2nm_cluster_from_node(struct o2nm_node
*node
)
182 /* through the first node_set .parent
183 * mycluster/nodes/mynode == o2nm_cluster->o2nm_node_group->o2nm_node */
184 return to_o2nm_cluster(node
->nd_item
.ci_parent
->ci_parent
);
188 O2NM_NODE_ATTR_NUM
= 0,
190 O2NM_NODE_ATTR_ADDRESS
,
193 static ssize_t
o2nm_node_num_store(struct config_item
*item
, const char *page
,
196 struct o2nm_node
*node
= to_o2nm_node(item
);
197 struct o2nm_cluster
*cluster
= to_o2nm_cluster_from_node(node
);
199 char *p
= (char *)page
;
202 tmp
= simple_strtoul(p
, &p
, 0);
203 if (!p
|| (*p
&& (*p
!= '\n')))
206 if (tmp
>= O2NM_MAX_NODES
)
209 /* once we're in the cl_nodes tree networking can look us up by
210 * node number and try to use our address and port attributes
211 * to connect to this node.. make sure that they've been set
212 * before writing the node attribute? */
213 if (!test_bit(O2NM_NODE_ATTR_ADDRESS
, &node
->nd_set_attributes
) ||
214 !test_bit(O2NM_NODE_ATTR_PORT
, &node
->nd_set_attributes
))
215 return -EINVAL
; /* XXX */
217 write_lock(&cluster
->cl_nodes_lock
);
218 if (cluster
->cl_nodes
[tmp
])
220 else if (test_and_set_bit(O2NM_NODE_ATTR_NUM
,
221 &node
->nd_set_attributes
))
224 cluster
->cl_nodes
[tmp
] = node
;
226 set_bit(tmp
, cluster
->cl_nodes_bitmap
);
228 write_unlock(&cluster
->cl_nodes_lock
);
234 static ssize_t
o2nm_node_ipv4_port_show(struct config_item
*item
, char *page
)
236 return sprintf(page
, "%u\n", ntohs(to_o2nm_node(item
)->nd_ipv4_port
));
239 static ssize_t
o2nm_node_ipv4_port_store(struct config_item
*item
,
240 const char *page
, size_t count
)
242 struct o2nm_node
*node
= to_o2nm_node(item
);
244 char *p
= (char *)page
;
246 tmp
= simple_strtoul(p
, &p
, 0);
247 if (!p
|| (*p
&& (*p
!= '\n')))
255 if (test_and_set_bit(O2NM_NODE_ATTR_PORT
, &node
->nd_set_attributes
))
257 node
->nd_ipv4_port
= htons(tmp
);
262 static ssize_t
o2nm_node_ipv4_address_show(struct config_item
*item
, char *page
)
264 return sprintf(page
, "%pI4\n", &to_o2nm_node(item
)->nd_ipv4_address
);
267 static ssize_t
o2nm_node_ipv4_address_store(struct config_item
*item
,
271 struct o2nm_node
*node
= to_o2nm_node(item
);
272 struct o2nm_cluster
*cluster
= to_o2nm_cluster_from_node(node
);
274 struct rb_node
**p
, *parent
;
275 unsigned int octets
[4];
276 __be32 ipv4_addr
= 0;
278 ret
= sscanf(page
, "%3u.%3u.%3u.%3u", &octets
[3], &octets
[2],
279 &octets
[1], &octets
[0]);
283 for (i
= 0; i
< ARRAY_SIZE(octets
); i
++) {
286 be32_add_cpu(&ipv4_addr
, octets
[i
] << (i
* 8));
290 write_lock(&cluster
->cl_nodes_lock
);
291 if (o2nm_node_ip_tree_lookup(cluster
, ipv4_addr
, &p
, &parent
))
293 else if (test_and_set_bit(O2NM_NODE_ATTR_ADDRESS
,
294 &node
->nd_set_attributes
))
297 rb_link_node(&node
->nd_ip_node
, parent
, p
);
298 rb_insert_color(&node
->nd_ip_node
, &cluster
->cl_node_ip_tree
);
300 write_unlock(&cluster
->cl_nodes_lock
);
304 memcpy(&node
->nd_ipv4_address
, &ipv4_addr
, sizeof(ipv4_addr
));
309 static ssize_t
o2nm_node_local_show(struct config_item
*item
, char *page
)
311 return sprintf(page
, "%d\n", to_o2nm_node(item
)->nd_local
);
314 static ssize_t
o2nm_node_local_store(struct config_item
*item
, const char *page
,
317 struct o2nm_node
*node
= to_o2nm_node(item
);
318 struct o2nm_cluster
*cluster
= to_o2nm_cluster_from_node(node
);
320 char *p
= (char *)page
;
323 tmp
= simple_strtoul(p
, &p
, 0);
324 if (!p
|| (*p
&& (*p
!= '\n')))
327 tmp
= !!tmp
; /* boolean of whether this node wants to be local */
329 /* setting local turns on networking rx for now so we require having
330 * set everything else first */
331 if (!test_bit(O2NM_NODE_ATTR_ADDRESS
, &node
->nd_set_attributes
) ||
332 !test_bit(O2NM_NODE_ATTR_NUM
, &node
->nd_set_attributes
) ||
333 !test_bit(O2NM_NODE_ATTR_PORT
, &node
->nd_set_attributes
))
334 return -EINVAL
; /* XXX */
336 /* the only failure case is trying to set a new local node
337 * when a different one is already set */
338 if (tmp
&& tmp
== cluster
->cl_has_local
&&
339 cluster
->cl_local_node
!= node
->nd_num
)
342 /* bring up the rx thread if we're setting the new local node. */
343 if (tmp
&& !cluster
->cl_has_local
) {
344 ret
= o2net_start_listening(node
);
349 if (!tmp
&& cluster
->cl_has_local
&&
350 cluster
->cl_local_node
== node
->nd_num
) {
351 o2net_stop_listening(node
);
352 cluster
->cl_local_node
= O2NM_INVALID_NODE_NUM
;
355 node
->nd_local
= tmp
;
356 if (node
->nd_local
) {
357 cluster
->cl_has_local
= tmp
;
358 cluster
->cl_local_node
= node
->nd_num
;
364 CONFIGFS_ATTR(o2nm_node_
, num
);
365 CONFIGFS_ATTR(o2nm_node_
, ipv4_port
);
366 CONFIGFS_ATTR(o2nm_node_
, ipv4_address
);
367 CONFIGFS_ATTR(o2nm_node_
, local
);
369 static struct configfs_attribute
*o2nm_node_attrs
[] = {
371 &o2nm_node_attr_ipv4_port
,
372 &o2nm_node_attr_ipv4_address
,
373 &o2nm_node_attr_local
,
377 static struct configfs_item_operations o2nm_node_item_ops
= {
378 .release
= o2nm_node_release
,
381 static struct config_item_type o2nm_node_type
= {
382 .ct_item_ops
= &o2nm_node_item_ops
,
383 .ct_attrs
= o2nm_node_attrs
,
384 .ct_owner
= THIS_MODULE
,
389 struct o2nm_node_group
{
390 struct config_group ns_group
;
395 static struct o2nm_node_group
*to_o2nm_node_group(struct config_group
*group
)
398 container_of(group
, struct o2nm_node_group
, ns_group
)
403 static ssize_t
o2nm_cluster_attr_write(const char *page
, ssize_t count
,
407 char *p
= (char *)page
;
409 tmp
= simple_strtoul(p
, &p
, 0);
410 if (!p
|| (*p
&& (*p
!= '\n')))
423 static ssize_t
o2nm_cluster_idle_timeout_ms_show(struct config_item
*item
,
426 return sprintf(page
, "%u\n", to_o2nm_cluster(item
)->cl_idle_timeout_ms
);
429 static ssize_t
o2nm_cluster_idle_timeout_ms_store(struct config_item
*item
,
430 const char *page
, size_t count
)
432 struct o2nm_cluster
*cluster
= to_o2nm_cluster(item
);
436 ret
= o2nm_cluster_attr_write(page
, count
, &val
);
439 if (cluster
->cl_idle_timeout_ms
!= val
440 && o2net_num_connected_peers()) {
442 "o2net: cannot change idle timeout after "
443 "the first peer has agreed to it."
444 " %d connected peers\n",
445 o2net_num_connected_peers());
447 } else if (val
<= cluster
->cl_keepalive_delay_ms
) {
448 mlog(ML_NOTICE
, "o2net: idle timeout must be larger "
449 "than keepalive delay\n");
452 cluster
->cl_idle_timeout_ms
= val
;
459 static ssize_t
o2nm_cluster_keepalive_delay_ms_show(
460 struct config_item
*item
, char *page
)
462 return sprintf(page
, "%u\n",
463 to_o2nm_cluster(item
)->cl_keepalive_delay_ms
);
466 static ssize_t
o2nm_cluster_keepalive_delay_ms_store(
467 struct config_item
*item
, const char *page
, size_t count
)
469 struct o2nm_cluster
*cluster
= to_o2nm_cluster(item
);
473 ret
= o2nm_cluster_attr_write(page
, count
, &val
);
476 if (cluster
->cl_keepalive_delay_ms
!= val
477 && o2net_num_connected_peers()) {
479 "o2net: cannot change keepalive delay after"
480 " the first peer has agreed to it."
481 " %d connected peers\n",
482 o2net_num_connected_peers());
484 } else if (val
>= cluster
->cl_idle_timeout_ms
) {
485 mlog(ML_NOTICE
, "o2net: keepalive delay must be "
486 "smaller than idle timeout\n");
489 cluster
->cl_keepalive_delay_ms
= val
;
496 static ssize_t
o2nm_cluster_reconnect_delay_ms_show(
497 struct config_item
*item
, char *page
)
499 return sprintf(page
, "%u\n",
500 to_o2nm_cluster(item
)->cl_reconnect_delay_ms
);
503 static ssize_t
o2nm_cluster_reconnect_delay_ms_store(
504 struct config_item
*item
, const char *page
, size_t count
)
506 return o2nm_cluster_attr_write(page
, count
,
507 &to_o2nm_cluster(item
)->cl_reconnect_delay_ms
);
510 static ssize_t
o2nm_cluster_fence_method_show(
511 struct config_item
*item
, char *page
)
513 struct o2nm_cluster
*cluster
= to_o2nm_cluster(item
);
517 ret
= sprintf(page
, "%s\n",
518 o2nm_fence_method_desc
[cluster
->cl_fence_method
]);
522 static ssize_t
o2nm_cluster_fence_method_store(
523 struct config_item
*item
, const char *page
, size_t count
)
527 if (page
[count
- 1] != '\n')
530 for (i
= 0; i
< O2NM_FENCE_METHODS
; ++i
) {
531 if (count
!= strlen(o2nm_fence_method_desc
[i
]) + 1)
533 if (strncasecmp(page
, o2nm_fence_method_desc
[i
], count
- 1))
535 if (to_o2nm_cluster(item
)->cl_fence_method
!= i
) {
536 printk(KERN_INFO
"ocfs2: Changing fence method to %s\n",
537 o2nm_fence_method_desc
[i
]);
538 to_o2nm_cluster(item
)->cl_fence_method
= i
;
547 CONFIGFS_ATTR(o2nm_cluster_
, idle_timeout_ms
);
548 CONFIGFS_ATTR(o2nm_cluster_
, keepalive_delay_ms
);
549 CONFIGFS_ATTR(o2nm_cluster_
, reconnect_delay_ms
);
550 CONFIGFS_ATTR(o2nm_cluster_
, fence_method
);
552 static struct configfs_attribute
*o2nm_cluster_attrs
[] = {
553 &o2nm_cluster_attr_idle_timeout_ms
,
554 &o2nm_cluster_attr_keepalive_delay_ms
,
555 &o2nm_cluster_attr_reconnect_delay_ms
,
556 &o2nm_cluster_attr_fence_method
,
560 static struct config_item
*o2nm_node_group_make_item(struct config_group
*group
,
563 struct o2nm_node
*node
= NULL
;
565 if (strlen(name
) > O2NM_MAX_NAME_LEN
)
566 return ERR_PTR(-ENAMETOOLONG
);
568 node
= kzalloc(sizeof(struct o2nm_node
), GFP_KERNEL
);
570 return ERR_PTR(-ENOMEM
);
572 strcpy(node
->nd_name
, name
); /* use item.ci_namebuf instead? */
573 config_item_init_type_name(&node
->nd_item
, name
, &o2nm_node_type
);
574 spin_lock_init(&node
->nd_lock
);
576 mlog(ML_CLUSTER
, "o2nm: Registering node %s\n", name
);
578 return &node
->nd_item
;
581 static void o2nm_node_group_drop_item(struct config_group
*group
,
582 struct config_item
*item
)
584 struct o2nm_node
*node
= to_o2nm_node(item
);
585 struct o2nm_cluster
*cluster
= to_o2nm_cluster(group
->cg_item
.ci_parent
);
587 o2net_disconnect_node(node
);
589 if (cluster
->cl_has_local
&&
590 (cluster
->cl_local_node
== node
->nd_num
)) {
591 cluster
->cl_has_local
= 0;
592 cluster
->cl_local_node
= O2NM_INVALID_NODE_NUM
;
593 o2net_stop_listening(node
);
596 /* XXX call into net to stop this node from trading messages */
598 write_lock(&cluster
->cl_nodes_lock
);
601 if (node
->nd_ipv4_address
)
602 rb_erase(&node
->nd_ip_node
, &cluster
->cl_node_ip_tree
);
604 /* nd_num might be 0 if the node number hasn't been set.. */
605 if (cluster
->cl_nodes
[node
->nd_num
] == node
) {
606 cluster
->cl_nodes
[node
->nd_num
] = NULL
;
607 clear_bit(node
->nd_num
, cluster
->cl_nodes_bitmap
);
609 write_unlock(&cluster
->cl_nodes_lock
);
611 mlog(ML_CLUSTER
, "o2nm: Unregistered node %s\n",
612 config_item_name(&node
->nd_item
));
614 config_item_put(item
);
617 static struct configfs_group_operations o2nm_node_group_group_ops
= {
618 .make_item
= o2nm_node_group_make_item
,
619 .drop_item
= o2nm_node_group_drop_item
,
622 static struct config_item_type o2nm_node_group_type
= {
623 .ct_group_ops
= &o2nm_node_group_group_ops
,
624 .ct_owner
= THIS_MODULE
,
629 static void o2nm_cluster_release(struct config_item
*item
)
631 struct o2nm_cluster
*cluster
= to_o2nm_cluster(item
);
636 static struct configfs_item_operations o2nm_cluster_item_ops
= {
637 .release
= o2nm_cluster_release
,
640 static struct config_item_type o2nm_cluster_type
= {
641 .ct_item_ops
= &o2nm_cluster_item_ops
,
642 .ct_attrs
= o2nm_cluster_attrs
,
643 .ct_owner
= THIS_MODULE
,
648 struct o2nm_cluster_group
{
649 struct configfs_subsystem cs_subsys
;
654 static struct o2nm_cluster_group
*to_o2nm_cluster_group(struct config_group
*group
)
657 container_of(to_configfs_subsystem(group
), struct o2nm_cluster_group
, cs_subsys
)
662 static struct config_group
*o2nm_cluster_group_make_group(struct config_group
*group
,
665 struct o2nm_cluster
*cluster
= NULL
;
666 struct o2nm_node_group
*ns
= NULL
;
667 struct config_group
*o2hb_group
= NULL
, *ret
= NULL
;
669 /* this runs under the parent dir's i_mutex; there can be only
670 * one caller in here at a time */
671 if (o2nm_single_cluster
)
672 return ERR_PTR(-ENOSPC
);
674 cluster
= kzalloc(sizeof(struct o2nm_cluster
), GFP_KERNEL
);
675 ns
= kzalloc(sizeof(struct o2nm_node_group
), GFP_KERNEL
);
676 o2hb_group
= o2hb_alloc_hb_set();
677 if (cluster
== NULL
|| ns
== NULL
|| o2hb_group
== NULL
)
680 config_group_init_type_name(&cluster
->cl_group
, name
,
682 configfs_add_default_group(&ns
->ns_group
, &cluster
->cl_group
);
684 config_group_init_type_name(&ns
->ns_group
, "node",
685 &o2nm_node_group_type
);
686 configfs_add_default_group(o2hb_group
, &cluster
->cl_group
);
688 rwlock_init(&cluster
->cl_nodes_lock
);
689 cluster
->cl_node_ip_tree
= RB_ROOT
;
690 cluster
->cl_reconnect_delay_ms
= O2NET_RECONNECT_DELAY_MS_DEFAULT
;
691 cluster
->cl_idle_timeout_ms
= O2NET_IDLE_TIMEOUT_MS_DEFAULT
;
692 cluster
->cl_keepalive_delay_ms
= O2NET_KEEPALIVE_DELAY_MS_DEFAULT
;
693 cluster
->cl_fence_method
= O2NM_FENCE_RESET
;
695 ret
= &cluster
->cl_group
;
696 o2nm_single_cluster
= cluster
;
702 o2hb_free_hb_set(o2hb_group
);
703 ret
= ERR_PTR(-ENOMEM
);
709 static void o2nm_cluster_group_drop_item(struct config_group
*group
, struct config_item
*item
)
711 struct o2nm_cluster
*cluster
= to_o2nm_cluster(item
);
713 BUG_ON(o2nm_single_cluster
!= cluster
);
714 o2nm_single_cluster
= NULL
;
716 configfs_remove_default_groups(&cluster
->cl_group
);
717 config_item_put(item
);
720 static struct configfs_group_operations o2nm_cluster_group_group_ops
= {
721 .make_group
= o2nm_cluster_group_make_group
,
722 .drop_item
= o2nm_cluster_group_drop_item
,
725 static struct config_item_type o2nm_cluster_group_type
= {
726 .ct_group_ops
= &o2nm_cluster_group_group_ops
,
727 .ct_owner
= THIS_MODULE
,
730 static struct o2nm_cluster_group o2nm_cluster_group
= {
734 .ci_namebuf
= "cluster",
735 .ci_type
= &o2nm_cluster_group_type
,
741 int o2nm_depend_item(struct config_item
*item
)
743 return configfs_depend_item(&o2nm_cluster_group
.cs_subsys
, item
);
746 void o2nm_undepend_item(struct config_item
*item
)
748 configfs_undepend_item(item
);
751 int o2nm_depend_this_node(void)
754 struct o2nm_node
*local_node
;
756 local_node
= o2nm_get_node_by_num(o2nm_this_node());
762 ret
= o2nm_depend_item(&local_node
->nd_item
);
763 o2nm_node_put(local_node
);
769 void o2nm_undepend_this_node(void)
771 struct o2nm_node
*local_node
;
773 local_node
= o2nm_get_node_by_num(o2nm_this_node());
776 o2nm_undepend_item(&local_node
->nd_item
);
777 o2nm_node_put(local_node
);
781 static void __exit
exit_o2nm(void)
783 /* XXX sync with hb callbacks and shut down hb? */
784 o2net_unregister_hb_callbacks();
785 configfs_unregister_subsystem(&o2nm_cluster_group
.cs_subsys
);
792 static int __init
init_o2nm(void)
804 ret
= o2net_register_hb_callbacks();
808 config_group_init(&o2nm_cluster_group
.cs_subsys
.su_group
);
809 mutex_init(&o2nm_cluster_group
.cs_subsys
.su_mutex
);
810 ret
= configfs_register_subsystem(&o2nm_cluster_group
.cs_subsys
);
812 printk(KERN_ERR
"nodemanager: Registration returned %d\n", ret
);
816 ret
= o2cb_sys_init();
820 configfs_unregister_subsystem(&o2nm_cluster_group
.cs_subsys
);
822 o2net_unregister_hb_callbacks();
831 MODULE_AUTHOR("Oracle");
832 MODULE_LICENSE("GPL");
833 MODULE_DESCRIPTION("OCFS2 cluster management");
835 module_init(init_o2nm
)
836 module_exit(exit_o2nm
)