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.
This commit is contained in:
parent
94122d1695
commit
e95fb8576b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129841
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user