Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9010 lnet: Change static defines to use macro for module.c
[fs/lustre-release.git]
/
lnet
/
lnet
/
module.c
diff --git
a/lnet/lnet/module.c
b/lnet/lnet/module.c
index
676f734
..
9b43c20
100644
(file)
--- a/
lnet/lnet/module.c
+++ b/
lnet/lnet/module.c
@@
-39,7
+39,7
@@
static int config_on_load = 0;
module_param(config_on_load, int, 0444);
MODULE_PARM_DESC(config_on_load, "configure network at module load");
module_param(config_on_load, int, 0444);
MODULE_PARM_DESC(config_on_load, "configure network at module load");
-static
struct mutex lnet_config_mutex
;
+static
DEFINE_MUTEX(lnet_config_mutex)
;
static int
lnet_configure(void *arg)
static int
lnet_configure(void *arg)
@@
-235,8
+235,6
@@
static int __init lnet_init(void)
int rc;
ENTRY;
int rc;
ENTRY;
- mutex_init(&lnet_config_mutex);
-
rc = lnet_lib_init();
if (rc != 0) {
CERROR("lnet_lib_init: error %d\n", rc);
rc = lnet_lib_init();
if (rc != 0) {
CERROR("lnet_lib_init: error %d\n", rc);