Skip to content
Snippets Groups Projects
Commit a877c799 authored by Yuri.Sh's avatar Yuri.Sh Committed by GitHub
Browse files

Make sure all delayed rcu free inodes are flushed before we destroy cache.

This fix was added to all FS drivers in 3.6.0 -rc7 and was missing here.
https://github.com/torvalds/linux/commit/8c0a85377048b64c880e76ec7368904fe46d0b94
parent 0c18ca3c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2563,6 +2563,13 @@ static int __init exfat_init_inodecache(void)
 
static void __exit exfat_destroy_inodecache(void)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
/*
* Make sure all delayed rcu free inodes are flushed before we
* destroy cache.
*/
rcu_barrier();
#endif
kmem_cache_destroy(exfat_inode_cachep);
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment