| Submitter | Boaz Harrosh |
|---|---|
| Date | Feb. 9, 2011, 8:26 a.m. |
| Message ID | <4D524FC6.3020300@panasas.com> |
| Download | mbox | patch |
| Permalink | /patch/82437/ |
| State | Not Applicable |
| Headers | show |
Comments
Patch
diff --git a/fs/super.c b/fs/super.c index 74e149e..7e9dd4c 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 {