]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/minix/inode.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[mirror_ubuntu-artful-kernel.git] / fs / minix / inode.c
index 2a503ad020d5da4bd1de5442e306f5b98a0b02d9..dc8d3629c20a39636f0dfc5f9b462d333fde80c0 100644 (file)
@@ -100,6 +100,11 @@ static int init_inodecache(void)
 
 static void destroy_inodecache(void)
 {
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(minix_inode_cachep);
 }