]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Add freezing handling to mnt_want_write() / mnt_drop_write()
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2012 14:20:35 +0000 (16:20 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 31 Jul 2012 05:40:38 +0000 (09:40 +0400)
commit3e6d812c7585089f9606ba1ea7416573dac3b475
tree82912fd7c78be269560a8af7d8516918c279255b
parentf20c6e90e00ffba2e1b83e06dcce21306a181a3f
fs: Add freezing handling to mnt_want_write() / mnt_drop_write()

Most of places where we want freeze protection coincides with the places where
we also have remount-ro protection. So make mnt_want_write() and
mnt_drop_write() (and their _file alternative) prevent freezing as well.
For the few cases that are really interested only in remount-ro protection
provide new function variants.

BugLink: https://bugs.launchpad.net/bugs/897421
Tested-by: Kamal Mostafa <kamal@canonical.com>
Tested-by: Peter M. Petrakis <peter.petrakis@canonical.com>
Tested-by: Dann Frazier <dann.frazier@canonical.com>
Tested-by: Massimo Morana <massimo.morana@canonical.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
fs/inode.c
fs/internal.h
fs/namespace.c
fs/open.c