aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-05-31 19:08:22 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-05-31 19:08:22 +0000
commit69af1dccdc4af33964b8ae64befdfc9b66aac084 (patch)
tree8f900fed4e281a6120338e98ed1d3098a6889f49 /sys
parent9e6127fe3ba0604c06f0eaa510fd0a2d752369f3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/nfsserver/nfs_serv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index bc6e4ff1d8872..e57840159e8ea 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -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