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-30 23:02:51 +0200 |
commit | 4a55c1017b8dcfd0554734ce3f19374d5b522d59 (patch) | |
tree | 11bb9456d121ff1cc0adad10da12b25083823a19 /fs/nfsd/nfsfh.c | |
parent | btrfs: Push mnt_want_write() outside of i_mutex (diff) | |
download | linux-4a55c1017b8dcfd0554734ce3f19374d5b522d59.tar.xz linux-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 'fs/nfsd/nfsfh.c')
-rw-r--r-- | fs/nfsd/nfsfh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index cc793005a87c..032af381b3aa 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c @@ -635,6 +635,7 @@ fh_put(struct svc_fh *fhp) fhp->fh_post_saved = 0; #endif } + fh_drop_write(fhp); if (exp) { exp_put(exp); fhp->fh_export = NULL; |