X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsuper.c;h=7e9dd4cc2c01170d0d7a38035a430e554c90cc57;hb=15f13e23e818c9de81003f37430eb648abae9107;hp=74e149efed8194b9ad45b06f654533cd884f0ca1;hpb=5955e7524790a2c8972487ab43347c28a1931521;p=pandora-kernel.git diff --git a/fs/super.c b/fs/super.c index 74e149efed81..7e9dd4cc2c01 100644 --- a/fs/super.c +++ b/fs/super.c @@ -177,6 +177,11 @@ void deactivate_locked_super(struct super_block *s) struct file_system_type *fs = s->s_type; if (atomic_dec_and_test(&s->s_active)) { fs->kill_sb(s); + /* + * We need to call rcu_barrier so all the delayed rcu free + * inodes are flushed before we release the fs module. + */ + rcu_barrier(); put_filesystem(fs); put_super(s); } else {