Whamcloud - gitweb
b=1111
authorpschwan <pschwan>
Sun, 20 Apr 2003 15:43:29 +0000 (15:43 +0000)
committerpschwan <pschwan>
Sun, 20 Apr 2003 15:43:29 +0000 (15:43 +0000)
- add ptlrpc_ldlm_hooks_referenced(), so we can determine in
  ldlm_cleanup if "force" is needed
- add a little bit more debug information to hunt connection leaks

lustre/ptlrpc/ptlrpc_module.c

index bd35800..af81745 100644 (file)
@@ -85,6 +85,11 @@ void ptlrpc_put_ldlm_hooks(void)
 
 #undef PUT_HOOK
 
+int ptlrpc_ldlm_hooks_referenced(void)
+{
+        return ldlm_hooks_referenced;
+}
+
 __init int ptlrpc_init(void)
 {
         int rc;
@@ -204,6 +209,7 @@ EXPORT_SYMBOL(lustre_swab_ptlbd_rsp);
 
 /* ptlrpc_module.c */
 EXPORT_SYMBOL(ptlrpc_put_ldlm_hooks);
+EXPORT_SYMBOL(ptlrpc_ldlm_hooks_referenced);
 
 /* recover.c */
 EXPORT_SYMBOL(ptlrpc_run_recovery_upcall);