Skip to content

Commit

Permalink
Make sure all delayed rcu free inodes are flushed before we destroy c…
Browse files Browse the repository at this point in the history
…ache.

This fix was added to all FS drivers in 3.6.0 -rc7 and was missing here.
torvalds/linux@8c0a853
  • Loading branch information
dorimanx authored Dec 13, 2016
1 parent 0c18ca3 commit a877c79
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exfat_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a877c79

Please sign in to comment.