angler-fishThe Vulnerability History Project

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>
    
commit 4a55c1017b8dcfd0554734ce3f19374d5b522d59
+5 -4
+1
+8 -1
+40 -39
+9 -2
+1
expand_less