]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/nilfs2/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[mirror_ubuntu-artful-kernel.git] / fs / nilfs2 / super.c
index 6a10812711c1d37bca6660530cd6c34cbb7b30fb..3c991dc84f2f2df6f8c9dccd922d8edbf1ff32a5 100644 (file)
@@ -1382,6 +1382,12 @@ static void nilfs_segbuf_init_once(void *obj)
 
 static void nilfs_destroy_cachep(void)
 {
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
+
        if (nilfs_inode_cachep)
                kmem_cache_destroy(nilfs_inode_cachep);
        if (nilfs_transaction_cachep)