From 12349e8b642244db4e5964bcfe5bc2be20db7433 Mon Sep 17 00:00:00 2001 From: vitaly Date: Wed, 26 Mar 2008 15:28:45 +0000 Subject: [PATCH] Branch HEAD b=14533 a spontaneous change got into the commit and prevented HEAD to unmount --- lustre/ldlm/ldlm_resource.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lustre/ldlm/ldlm_resource.c b/lustre/ldlm/ldlm_resource.c index 8d914a0..3f98c17 100644 --- a/lustre/ldlm/ldlm_resource.c +++ b/lustre/ldlm/ldlm_resource.c @@ -478,19 +478,6 @@ int ldlm_namespace_free_prior(struct ldlm_namespace *ns) if (!ns) RETURN(ELDLM_OK); -#ifdef LPROCFS - { - struct proc_dir_entry *dir; - dir = lprocfs_srch(ldlm_ns_proc_dir, ns->ns_name); - if (dir == NULL) { - CERROR("dlm namespace %s has no procfs dir?\n", - ns->ns_name); - } else { - lprocfs_remove(&dir); - } - } -#endif - mutex_down(ldlm_namespace_lock(ns->ns_client)); list_del(&ns->ns_list_chain); atomic_dec(ldlm_namespace_nr(ns->ns_client)); @@ -529,6 +516,19 @@ int ldlm_namespace_free_post(struct ldlm_namespace *ns, int force) if (!ns) RETURN(ELDLM_OK); +#ifdef LPROCFS + { + struct proc_dir_entry *dir; + dir = lprocfs_srch(ldlm_ns_proc_dir, ns->ns_name); + if (dir == NULL) { + CERROR("dlm namespace %s has no procfs dir?\n", + ns->ns_name); + } else { + lprocfs_remove(&dir); + } + } +#endif + OBD_VFREE(ns->ns_hash, sizeof(*ns->ns_hash) * RES_HASH_SIZE); OBD_FREE(ns->ns_name, strlen(ns->ns_name) + 1); OBD_FREE_PTR(ns); -- 1.8.3.1