From: Phil S. <ps...@us...> - 2003-04-20 15:43:30
|
Update of /cvsroot/lustre/lustre/ldlm In directory sc8-pr-cvs1:/tmp/cvs-serv21268/ldlm Modified Files: Tag: b_devel ldlm_lockd.c Log Message: 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 Index: ldlm_lockd.c =================================================================== RCS file: /cvsroot/lustre/lustre/ldlm/ldlm_lockd.c,v retrieving revision 1.131.2.16 retrieving revision 1.131.2.17 diff -u -w -b -B -p -r1.131.2.16 -r1.131.2.17 --- ldlm_lockd.c 14 Apr 2003 20:51:56 -0000 1.131.2.16 +++ ldlm_lockd.c 20 Apr 2003 15:43:26 -0000 1.131.2.17 @@ -851,8 +851,13 @@ static int ldlm_cleanup(struct obd_devic } #ifdef __KERNEL__ - if (force) + if (force) { ptlrpc_put_ldlm_hooks(); + } else if (ptlrpc_ldlm_hooks_referenced()) { + CERROR("Some connections weren't cleaned up; run lconf with " + "--force to forcibly unload.\n"); + RETURN(-EBUSY); + } ptlrpc_stop_all_threads(ldlm->ldlm_cb_service); ptlrpc_unregister_service(ldlm->ldlm_cb_service); |