X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Flnet%2Fmodule.c;h=9d574797d6af2abaec870edbbf496a08bff55928;hb=21d716e6c16424d9deb646456758ebbaa9c70fec;hp=770345d297124e65578246fe1999d86bb9d63267;hpb=08aa217ce49aba1ded52e0f7adb8a607035123fd;p=fs%2Flustre-release.git diff --git a/lnet/lnet/module.c b/lnet/lnet/module.c index 770345d..9d57479 100644 --- a/lnet/lnet/module.c +++ b/lnet/lnet/module.c @@ -127,11 +127,11 @@ init_lnet(void) rc = libcfs_register_ioctl(&lnet_ioctl_handler); LASSERT (rc == 0); - if (config_on_load) { - /* Have to schedule a separate thread to avoid deadlocking - * in modload */ - (void) cfs_create_thread(lnet_configure, NULL, 0); - } + if (config_on_load) { + /* Have to schedule a separate thread to avoid deadlocking + * in modload */ + (void) kthread_run(lnet_configure, NULL, "lnet_initd"); + } RETURN(0); }