]> git.baikalelectronics.ru Git - kernel.git/commit
drop ->s_umount around acct_auto_close()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 11:32:06 +0000 (07:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:08 +0000 (14:40 -0400)
commit5863c0034630b4cc97d50cfeb38dd72a4ac6ff8c
tree220068a33da8eadd95e3006f626f3d80b8822f6b
parentec467258d20c1cf49caa1c078df95afc42d71da8
drop ->s_umount around acct_auto_close()

just repeat the frozen check after regaining it, and check that sb
is still alive.  If several threads hit acct_auto_close() at the
same time, acct_auto_close() will survive that just fine.  And we
really don't want to play with writes and closing the file with
->s_umount held exclusive - it's a deadlock country.

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