From 2d231cab685a8afc58e0568e6b77d5769e6205a6 Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 31 May 2004 19:08:22 +0000 Subject: [PATCH] Release NFS subsystem lock and acquire Giant when calling into vn_start_write(). --- sys/nfsserver/nfs_serv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index bc6e4ff1d887..e57840159e8e 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