]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/adfs/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[mirror_ubuntu-bionic-kernel.git] / fs / adfs / super.c
index bdaec92353c2cc0e5e876115ee7a474e45c0ba4b..c830c857c663a4958379937f623097973e4b36de 100644 (file)
@@ -275,6 +275,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(adfs_inode_cachep);
 }