]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - fs/hfsplus/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[mirror_ubuntu-focal-kernel.git] / fs / hfsplus / super.c
index fdafb2d71654740776bd1b77931b955da350ecad..811a84d2d9643677832219a0b960c6d42109480e 100644 (file)
@@ -635,6 +635,12 @@ static int __init init_hfsplus_fs(void)
 static void __exit exit_hfsplus_fs(void)
 {
        unregister_filesystem(&hfsplus_fs_type);
+
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(hfsplus_inode_cachep);
 }