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>
Showing
- fs/nfsd/nfs4recover.c 5 additions, 4 deletionsfs/nfsd/nfs4recover.c
- fs/nfsd/nfsfh.c 1 addition, 0 deletionsfs/nfsd/nfsfh.c
- fs/nfsd/nfsproc.c 8 additions, 1 deletionfs/nfsd/nfsproc.c
- fs/nfsd/vfs.c 40 additions, 39 deletionsfs/nfsd/vfs.c
- fs/nfsd/vfs.h 9 additions, 2 deletionsfs/nfsd/vfs.h
- include/linux/nfsd/nfsfh.h 1 addition, 0 deletionsinclude/linux/nfsd/nfsfh.h
Loading
Please register or sign in to comment