]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/hugetlbfs/inode.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[karo-tx-linux.git] / fs / hugetlbfs / inode.c
index 8349a899912e5c47ca26c66df1be66c684bdce4d..c4b85d064e6bb91bd542dd36066be1bde6d86f7a 100644 (file)
@@ -1042,6 +1042,11 @@ static int __init init_hugetlbfs_fs(void)
 
 static void __exit exit_hugetlbfs_fs(void)
 {
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(hugetlbfs_inode_cachep);
        kern_unmount(hugetlbfs_vfsmount);
        unregister_filesystem(&hugetlbfs_fs_type);