From: LiuYing Date: Tue, 5 Jan 2010 00:42:18 +0000 (+0800) Subject: b=20591 fix race on obd_device::md_stats X-Git-Tag: 1.10.0.34~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=eb31249bb3cd0c1317a14bd99ae37dcf3ad742b1 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 --- 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;