nfsd: Push mnt_want_write() outside of i_mutex
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2012 14:20:33 +0000 (16:20 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Jul 2012 21:02:51 +0000 (01:02 +0400)
commit4a55c1017b8dcfd0554734ce3f19374d5b522d59
tree11bb9456d121ff1cc0adad10da12b25083823a19
parente7848683ae7ded0a4a8964122a47da9104a98337
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>
fs/nfsd/nfs4recover.c
fs/nfsd/nfsfh.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h
include/linux/nfsd/nfsfh.h