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
This commit is contained in:
Robert Watson 2004-05-29 15:21:25 +00:00
parent 93804be0d7
commit a8f28cbebe

View File

@ -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;