Whamcloud - gitweb
file insanity-ltest.sh was initially added on branch b1_2.
[fs/lustre-release.git] / lustre / ldlm / l_lock.c
index 2a4f832..69d3f14 100644 (file)
@@ -121,7 +121,7 @@ void l_check_no_ns_lock(struct ldlm_namespace *ns)
         static unsigned long next_msg;
 
         if (l_has_lock(&ns->ns_lock) && time_after(jiffies, next_msg)) {
-                CERROR("namespace %s lock held during RPCs; tell phil\n",
+                CERROR("namespace %s lock held illegally; tell phil\n",
                        ns->ns_name);
 #if (LUSTRE_KERNEL_VERSION >= 30)
                 CERROR(portals_debug_dumpstack());
@@ -133,6 +133,9 @@ void l_check_no_ns_lock(struct ldlm_namespace *ns)
 #else
 void l_check_no_ns_lock(struct ldlm_namespace *ns)
 {
-#warning "FIXME: check lock in user space??"
+        if (l_has_lock(&ns->ns_lock)) {
+                CERROR("namespace %s lock held illegally; tell phil\n",
+                       ns->ns_name);
+        }
 }
 #endif /* __KERNEL__ */