diff --git a/net/lnet/lnet/module.c b/net/lnet/lnet/module.c index 95e1bae..5905f38 100644 --- a/net/lnet/lnet/module.c +++ b/net/lnet/lnet/module.c @@ -40,7 +40,7 @@ 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) @@ -235,8 +235,6 @@ static int __init lnet_init(void) { int rc; - mutex_init(&lnet_config_mutex); - rc = libcfs_setup(); if (rc) return rc;