author: Linus Torvalds <torvalds@linux-foundation.org> 2012-10-02 20:25:04 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2012-10-02 20:25:04 -0700
commit: aab174f0df5d72d31caccf281af5f614fa254578
parent: ca41cc96b2813221b05af57d0355157924de5a07
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c
index 5c3c7b02e17b..43098bb5723a 100644
--- a/fs/qnx4/inode.c
+++ b/fs/qnx4/inode.c
@@ -391,6 +391,11 @@ static int init_inodecache(void)
static void destroy_inodecache(void)
{
+ /*
+ * Make sure all delayed rcu free inodes are flushed before we
+ * destroy cache.
+ */
+ rcu_barrier();
kmem_cache_destroy(qnx4_inode_cachep);
}