]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - fs/jfs/super.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[mirror_ubuntu-eoan-kernel.git] / fs / jfs / super.c
index c55c7452d2857c1f0f59042f5b6ffd1de9eba8b6..3735347fd5f6fe7ac52d4548feba02213927a001 100644 (file)
@@ -903,6 +903,12 @@ static void __exit exit_jfs_fs(void)
        jfs_proc_clean();
 #endif
        unregister_filesystem(&jfs_fs_type);
+
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(jfs_inode_cachep);
 }