Whamcloud - gitweb
LU-3857 osd: cleanup procfs after osd_shutdown
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index 6e276b8..c13c682 100644 (file)
@@ -5509,8 +5509,8 @@ static struct lu_device *osd_device_fini(const struct lu_env *env,
        struct osd_device *o = osd_dev(d);
        ENTRY;
 
-       osd_procfs_fini(o);
        osd_shutdown(env, o);
+       osd_procfs_fini(o);
        osd_scrub_cleanup(env, o);
        osd_obj_map_fini(o);
        osd_umount(env, o);