]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/squashfs/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[karo-tx-linux.git] / fs / squashfs / super.c
index 29cd014ed3a17a776db73b4c1e492f44d78cba4e..260e3928d4f52bb94076e0025f5fd8bef08bb1c3 100644 (file)
@@ -425,6 +425,11 @@ static int __init 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(squashfs_inode_cachep);
 }