From 023181ee085df74cb0b05893b458a6a7be06f8e1 Mon Sep 17 00:00:00 2001 From: pschwan Date: Sun, 20 Apr 2003 15:43:29 +0000 Subject: [PATCH] b=1111 - 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index bd35800..af81745 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -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); -- 1.8.3.1