diff options
author | Jan Kara <jack@suse.cz> | 2012-06-12 16:20:33 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-31 01:02:51 +0400 |
commit | 4a55c1017b8dcfd0554734ce3f19374d5b522d59 (patch) | |
tree | 11bb9456d121ff1cc0adad10da12b25083823a19 /include/linux/nfsd | |
parent | e7848683ae7ded0a4a8964122a47da9104a98337 (diff) | |
download | linux-stable-4a55c1017b8dcfd0554734ce3f19374d5b522d59.tar.gz linux-stable-4a55c1017b8dcfd0554734ce3f19374d5b522d59.tar.bz2 linux-stable-4a55c1017b8dcfd0554734ce3f19374d5b522d59.zip |
nfsd: Push mnt_want_write() outside of i_mutex
When mnt_want_write() starts to handle freezing it will get a full lock
semantics requiring proper lock ordering. So push mnt_want_write() call
consistently outside of i_mutex.
CC: linux-nfs@vger.kernel.org
CC: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r-- | include/linux/nfsd/nfsfh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfsd/nfsfh.h b/include/linux/nfsd/nfsfh.h index ce4743a26015..fa63048fecff 100644 --- a/include/linux/nfsd/nfsfh.h +++ b/include/linux/nfsd/nfsfh.h @@ -143,6 +143,7 @@ typedef struct svc_fh { int fh_maxsize; /* max size for fh_handle */ unsigned char fh_locked; /* inode locked by us */ + unsigned char fh_want_write; /* remount protection taken */ #ifdef CONFIG_NFSD_V3 unsigned char fh_post_saved; /* post-op attrs saved */ |