From eb31249bb3cd0c1317a14bd99ae37dcf3ad742b1 Mon Sep 17 00:00:00 2001 From: LiuYing Date: Tue, 5 Jan 2010 08:42:18 +0800 Subject: [PATCH] b=20591 fix race on obd_device::md_stats call lprocfs_free_per_client_stats() before mdt_procfs_fini() frees all the lprocfs data i=liuying i=wangdi o=vitaly --- lustre/mdt/mdt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 6945820..cf7decb 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -4379,9 +4379,9 @@ static void mdt_fini(const struct lu_env *env, struct mdt_device *m) */ mdt_stack_fini(env, m, md2lu_dev(m->mdt_child)); - mdt_procfs_fini(m); lprocfs_free_per_client_stats(obd); lprocfs_free_obd_stats(obd); + mdt_procfs_fini(m); if (ls) { struct md_site *mite; -- 1.8.3.1