]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/9p/v9fs.c
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
[karo-tx-linux.git] / fs / 9p / v9fs.c
index b85efa77394989bf8dafabb3eb01e5dfa2c64d7d..392c5dac1981be79b4aff040e552b48c78c5751f 100644 (file)
@@ -560,6 +560,11 @@ static int v9fs_init_inode_cache(void)
  */
 static void v9fs_destroy_inode_cache(void)
 {
+       /*
+        * Make sure all delayed rcu free inodes are flushed before we
+        * destroy cache.
+        */
+       rcu_barrier();
        kmem_cache_destroy(v9fs_inode_cache);
 }