Whamcloud - gitweb
Branch b_hd_newconfig
authornathan <nathan>
Thu, 27 Oct 2005 22:54:42 +0000 (22:54 +0000)
committernathan <nathan>
Thu, 27 Oct 2005 22:54:42 +0000 (22:54 +0000)
b=9501
fix 'lctl net down' twice assert

lnet/lnet/module.c

index 730608a..ea5fa02 100644 (file)
@@ -58,8 +58,10 @@ lnet_unconfigure (void)
         
         LNET_MUTEX_DOWN(&lnet_config_mutex);
 
-        if (the_lnet.ln_niinit_self)
+        if (the_lnet.ln_niinit_self) {
+                the_lnet.ln_niinit_self = 0;
                 LNetNIFini();
+        }
 
         LNET_MUTEX_DOWN(&the_lnet.ln_api_mutex);
         refcount = the_lnet.ln_refcount;