From 6fd04518a1e175ce3947b801f35424fbe7238dcf Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 29 May 2004 15:52:39 +0000 Subject: [PATCH] Don't release Giant until after the call to vput() in nfsrv_setattr(). Unless running with debug.mpsafenet=1, this was not actually a problem. --- sys/nfsserver/nfs_serv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 1a142df04df3..d0e7fb1dcca0 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -389,8 +389,8 @@ nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, preat.va_ctime.tv_nsec != guard.tv_nsec)) error = NFSERR_NOT_SYNC; if (error) { - mtx_unlock(&Giant); /* VFS */ vput(vp); + mtx_unlock(&Giant); /* VFS */ vp = NULL; NFSD_LOCK(); nfsm_reply(NFSX_WCCDATA(v3));