commit | eb04c28288bb0098d0e75d81ba2a575239de71d8 | [log] [tgz] |
---|---|---|
author | Jan Kara <[email protected]> | Tue Jun 12 16:20:35 2012 +0200 |
committer | Al Viro <[email protected]> | Tue Jul 31 09:40:38 2012 +0400 |
tree | 82912fd7c78be269560a8af7d8516918c279255b | |
parent | 5accdf82ba25cacefd6c1867f1704beb4d244cdd [diff] [blame] |
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 <[email protected]> Tested-by: Peter M. Petrakis <[email protected]> Tested-by: Dann Frazier <[email protected]> Tested-by: Massimo Morana <[email protected]> Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Al Viro <[email protected]>
diff --git a/fs/file_table.c b/fs/file_table.c index b54bf7f..701985e 100644 --- a/fs/file_table.c +++ b/fs/file_table.c
@@ -217,7 +217,7 @@ return; if (file_check_writeable(file) != 0) return; - mnt_drop_write(mnt); + __mnt_drop_write(mnt); file_release_write(file); }