This patch replaces mutex which are defined statically
in file lnet/lnet/module.c with kernel provided macro.
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Change-Id: I59de4514dc332c3c59e0d816720a81394521881c
Reviewed-on: https://review.whamcloud.com/33932
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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)
int rc;
ENTRY;
- mutex_init(&lnet_config_mutex);
-
rc = lnet_lib_init();
if (rc != 0) {
CERROR("lnet_lib_init: error %d\n", rc);