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>
This commit is contained in:
@@ -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;
|
||||
|
Fai riferimento in un nuovo problema
Block a user