Release NFS subsystem lock and acquire Giant when calling into

vn_start_write().
This commit is contained in:
rwatson 2004-05-31 19:08:22 +00:00
parent afc098b3e1
commit 2d231cab68

View File

@ -2349,7 +2349,11 @@ nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
error = ESTALE;
goto out1;
}
NFSD_UNLOCK();
mtx_lock(&Giant);
(void) vn_start_write(NULL, &mp, V_WAIT);
mtx_unlock(&Giant);
NFSD_LOCK();
nfsm_srvnamesiz(len);
/*
* Remember our original uid so that we can reset cr_uid before