]>
git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - fs/gfs2/locking/dlm/main.c
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
10 #include <linux/init.h>
14 extern int gdlm_drop_count
;
15 extern int gdlm_drop_period
;
17 extern struct lm_lockops gdlm_ops
;
19 static int __init
init_lock_dlm(void)
23 error
= gfs2_register_lockproto(&gdlm_ops
);
25 printk(KERN_WARNING
"lock_dlm: can't register protocol: %d\n",
30 error
= gdlm_sysfs_init();
32 gfs2_unregister_lockproto(&gdlm_ops
);
36 error
= gdlm_plock_init();
39 gfs2_unregister_lockproto(&gdlm_ops
);
43 gdlm_drop_count
= GDLM_DROP_COUNT
;
44 gdlm_drop_period
= GDLM_DROP_PERIOD
;
47 "Lock_DLM (built %s %s) installed\n", __DATE__
, __TIME__
);
51 static void __exit
exit_lock_dlm(void)
55 gfs2_unregister_lockproto(&gdlm_ops
);
58 module_init(init_lock_dlm
);
59 module_exit(exit_lock_dlm
);
61 MODULE_DESCRIPTION("GFS DLM Locking Module");
62 MODULE_AUTHOR("Red Hat, Inc.");
63 MODULE_LICENSE("GPL");