mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Do not call sorecieve() in the context of a socket callback as it causes
lock order reversals so->inpcb since we're called with the socket lock held.
This commit is contained in:
parent
440382a953
commit
d83ed0fac0
1 changed files with 5 additions and 3 deletions
|
|
@ -433,16 +433,18 @@ nfsrv_rcv(struct socket *so, void *arg, int waitflag)
|
|||
/* XXXRW: Unlocked read. */
|
||||
if ((slp->ns_flag & SLP_VALID) == 0)
|
||||
return;
|
||||
#ifdef notdef
|
||||
|
||||
/*
|
||||
* Define this to test for nfsds handling this under heavy load.
|
||||
* We can't do this in the context of a socket callback
|
||||
* because we're called with locks held.
|
||||
* XXX: SMP
|
||||
*/
|
||||
if (waitflag == M_DONTWAIT) {
|
||||
NFSD_LOCK();
|
||||
slp->ns_flag |= SLP_NEEDQ;
|
||||
goto dorecs;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
NFSD_LOCK();
|
||||
auio.uio_td = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue