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:
parent
93804be0d7
commit
a8f28cbebe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129839
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user