]> Pileus Git - ~andy/linux/blobdiff - fs/bfs/inode.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[~andy/linux] / fs / bfs / inode.c
index 9870417c26e7c43852f98b3d641445b5a94c40b1..d5fc598d6e4ac554f527bebc036d9ad7ba798c81 100644 (file)
@@ -280,6 +280,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(bfs_inode_cachep);
 }