diff options
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r-- | fs/hugetlbfs/inode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 8349a899912e..c4b85d064e6b 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -1042,6 +1042,11 @@ static int __init init_hugetlbfs_fs(void) | |||
1042 | 1042 | ||
1043 | static void __exit exit_hugetlbfs_fs(void) | 1043 | static void __exit exit_hugetlbfs_fs(void) |
1044 | { | 1044 | { |
1045 | /* | ||
1046 | * Make sure all delayed rcu free inodes are flushed before we | ||
1047 | * destroy cache. | ||
1048 | */ | ||
1049 | rcu_barrier(); | ||
1045 | kmem_cache_destroy(hugetlbfs_inode_cachep); | 1050 | kmem_cache_destroy(hugetlbfs_inode_cachep); |
1046 | kern_unmount(hugetlbfs_vfsmount); | 1051 | kern_unmount(hugetlbfs_vfsmount); |
1047 | unregister_filesystem(&hugetlbfs_fs_type); | 1052 | unregister_filesystem(&hugetlbfs_fs_type); |