]> Pileus Git - ~andy/linux/blobdiff - fs/jffs2/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[~andy/linux] / fs / jffs2 / super.c
index 61ea41389f90d91d8b3ab6a6a39cd580720f1950..ff487954cd96f1447b254b28a41fcdbd82b61b55 100644 (file)
@@ -418,6 +418,12 @@ static void __exit exit_jffs2_fs(void)
        unregister_filesystem(&jffs2_fs_type);
        jffs2_destroy_slab_caches();
        jffs2_compressors_exit();
+
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(jffs2_inode_cachep);
 }