]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hpfs/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[karo-tx-linux.git] / fs / hpfs / super.c
index 706a12c083ea726a7a268d647ae266b02a3a2ca7..3cb1da56eb73438bf6137405e7ec9997399e1d96 100644 (file)
@@ -210,6 +210,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(hpfs_inode_cachep);
 }