]> git.baikalelectronics.ru Git - kernel.git/commit
fs: synchronize_rcu when unregister_filesystem success not failure
authorMilton Miller <miltonm@bga.com>
Thu, 14 Apr 2011 15:30:08 +0000 (10:30 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Apr 2011 17:42:01 +0000 (10:42 -0700)
commitf9a22676e05f36777872197d4569fe9cb40dea96
tree782685d5e479c5a5e167304868c43eca623e6a9e
parentab80a2375f944b73221101da1782b25a92793b2e
fs: synchronize_rcu when unregister_filesystem success not failure

While checking unregister_filesystem for saftey vs extra calls for
"ext4: register ext2 and ext3 alias after ext4" I realized that
the synchronize_rcu() was called on the error path but not on
the success path.

Cc: stable (2.6.38)
Signed-off-by: Milton Miller <miltonm@bga.com>
[ This probably won't really make a difference since commit 269029126bf8
  ("vfs: call rcu_barrier after ->kill_sb()"), but it's the right thing
  to do.  - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/filesystems.c