]> git.baikalelectronics.ru Git - kernel.git/commit
Saner locking around deactivate_super()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 22 Mar 2010 19:22:31 +0000 (15:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:14 +0000 (18:31 -0400)
commita0df08782b23b100dba22514b3f28b0a28439010
tree1493bc7166ace04d9ac2f4d5383eaab1d43e17c4
parent31314054d1da071c7f078e65cbb6f6d91bd1b966
Saner locking around deactivate_super()

Make sure that s_umount is acquired *before* we drop the final
active reference; we still have the fast path (atomic_dec_unless)
and we have gotten rid of the window between the moment when
s_active hits zero and s_umount is acquired.  Which simplifies
the living hell out of grab_super() and inotify pin_to_kill()
stuff.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/notify/inotify/inotify.c
fs/super.c