sdfat: push rcu_barrier() from deactivate_locked_super() to filesystems

* This was introduce in:
  https://github.com/torvalds/linux/commit/8c0a853

Change-Id: Ia2488bac7937b35509a547ea387c2fed5303ffac
Signed-off-by: Adek Maulana <adekzmaulana@gmail.com>
This commit is contained in:
Adek Maulana 2018-05-22 03:33:32 +07:00 committed by Andreas Schneider
parent ac2599d1e3
commit aa8183ffbd
1 changed files with 5 additions and 0 deletions

View File

@ -4961,6 +4961,11 @@ static int __init sdfat_init_inodecache(void)
static void sdfat_destroy_inodecache(void) static void sdfat_destroy_inodecache(void)
{ {
/*
* Make sure all delayed rcu free inodes are flushed before we
* destroy cache.
*/
rcu_barrier();
kmem_cache_destroy(sdfat_inode_cachep); kmem_cache_destroy(sdfat_inode_cachep);
} }