summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket2.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-03-07 13:50:16 +0000
committerrwatson <rwatson@FreeBSD.org>2005-03-07 13:50:16 +0000
commitd3722ef740560ea5a3981f0c6684e9c82594fae4 (patch)
treee307a663d5098436791738112aa44e300e48f728 /sys/kern/uipc_socket2.c
parent3ed75489459a58ade0f9e2d49f26a3fe6434583d (diff)
downloadFreeBSD-src-d3722ef740560ea5a3981f0c6684e9c82594fae4.zip
FreeBSD-src-d3722ef740560ea5a3981f0c6684e9c82594fae4.tar.gz
When upcalling from a socket in soisconnected() for an accept filter,
call with flag M_DONTWAIT rather than M_TRYWAIT, as we don't want to do blocking memory allocation (etc) in the netisr. MFC after: 3 days
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r--sys/kern/uipc_socket2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index c7a922d..17a09ca 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -143,7 +143,7 @@ soisconnected(so)
so->so_rcv.sb_flags |= SB_UPCALL;
so->so_options &= ~SO_ACCEPTFILTER;
SOCK_UNLOCK(so);
- so->so_upcall(so, so->so_upcallarg, M_TRYWAIT);
+ so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
}
return;
}
OpenPOWER on IntegriCloud