diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-05-29 15:21:25 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-05-29 15:21:25 +0000 |
commit | 8f6b4aa43171edcf92f16a2c287e4e1d4bc94732 (patch) | |
tree | 6d5943baa547476ac2bfb5e4ff4a926ad32c4cab /sys/nfsserver | |
parent | 5b277e7dbdc2b703ef0f32869cfc5f2625e19899 (diff) | |
download | FreeBSD-src-8f6b4aa43171edcf92f16a2c287e4e1d4bc94732.zip FreeBSD-src-8f6b4aa43171edcf92f16a2c287e4e1d4bc94732.tar.gz |
No need to conditionally acquire Giant in nfssvc_nfsd() because it
is acquired by the caller. Should not cause problems, but causes
an unnecessary recursion on Giant.
Pointed out by: bmilekic
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_syscalls.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c index 19ef606..5a6e2e5 100644 --- a/sys/nfsserver/nfs_syscalls.c +++ b/sys/nfsserver/nfs_syscalls.c @@ -498,9 +498,7 @@ nfssvc_nfsd(struct thread *td) (void) nfs_slplock(slp, 1); if (slp->ns_flag & SLP_VALID) { NFSD_UNLOCK(); - NET_LOCK_GIANT(); error = nfsrv_send(slp->ns_so, nd->nd_nam2, m); - NET_UNLOCK_GIANT(); NFSD_LOCK(); } else { error = EPIPE; |