Whamcloud - gitweb
b=20591 fix race on obd_device::md_stats
authorLiuYing <Emoly.Liu@Sun.COM>
Tue, 5 Jan 2010 00:42:18 +0000 (08:42 +0800)
committerRobert Read <rread@sun.com>
Tue, 5 Jan 2010 19:16:02 +0000 (11:16 -0800)
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

index 6945820..cf7decb 100644 (file)
@@ -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_stack_fini(env, m, md2lu_dev(m->mdt_child));
 
-        mdt_procfs_fini(m);
         lprocfs_free_per_client_stats(obd);
         lprocfs_free_obd_stats(obd);
         lprocfs_free_per_client_stats(obd);
         lprocfs_free_obd_stats(obd);
+        mdt_procfs_fini(m);
 
         if (ls) {
                 struct md_site *mite;
 
         if (ls) {
                 struct md_site *mite;