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 6e572c4fbf68..9460120a5170 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -1048,6 +1048,11 @@ static int __init init_hugetlbfs_fs(void) | |||
1048 | 1048 | ||
1049 | static void __exit exit_hugetlbfs_fs(void) | 1049 | static void __exit exit_hugetlbfs_fs(void) |
1050 | { | 1050 | { |
1051 | /* | ||
1052 | * Make sure all delayed rcu free inodes are flushed before we | ||
1053 | * destroy cache. | ||
1054 | */ | ||
1055 | rcu_barrier(); | ||
1051 | kmem_cache_destroy(hugetlbfs_inode_cachep); | 1056 | kmem_cache_destroy(hugetlbfs_inode_cachep); |
1052 | kern_unmount(hugetlbfs_vfsmount); | 1057 | kern_unmount(hugetlbfs_vfsmount); |
1053 | unregister_filesystem(&hugetlbfs_fs_type); | 1058 | unregister_filesystem(&hugetlbfs_fs_type); |