From 004d53cb55f0030218325c4c6ae5a7ad7bd6a9cc Mon Sep 17 00:00:00 2001 From: nathan <nathan> Date: Thu, 24 May 2007 14:59:46 +0000 Subject: [PATCH] b=10966 i=kalpak cleanup stats on error exit --- lustre/mds/handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 05ea7a633e..1ffac2cb88 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -380,7 +380,7 @@ int mds_init_export(struct obd_export *exp) INIT_LIST_HEAD(&med->med_open_head); spin_lock_init(&med->med_open_lock); - + spin_lock(&exp->exp_lock); exp->exp_connecting = 1; spin_unlock(&exp->exp_lock); @@ -2039,6 +2039,8 @@ err_fs: upcall_cache_cleanup(mds->mds_group_hash); mds->mds_group_hash = NULL; err_ns: + lprocfs_obd_cleanup(obd); + lprocfs_free_obd_stats(obd); ldlm_namespace_free(obd->obd_namespace, 0); obd->obd_namespace = NULL; err_ops: -- GitLab