Whamcloud - gitweb
b=11680 don't call LBUG if reading force_lbug
authorJohann Lombardi <johann@sun.com>
Fri, 15 Jan 2010 11:03:58 +0000 (12:03 +0100)
committerJohann Lombardi <johann@sun.com>
Fri, 15 Jan 2010 11:03:58 +0000 (12:03 +0100)
Should not happen because the permission is 0200,
but better to check.

lnet/libcfs/linux/linux-proc.c

index 2df0510..11af5c0 100644 (file)
@@ -333,9 +333,8 @@ int LL_PROC_PROTO(proc_console_backoff)
 
 int LL_PROC_PROTO(libcfs_force_lbug)
 {
-
-        LBUG();
-
+        if (write)
+                LBUG();
 }
 
 static cfs_sysctl_table_t lnet_table[] = {