diff options
author | 2016-12-19 08:36:49 +0000 | |
---|---|---|
committer | 2016-12-19 08:36:49 +0000 | |
commit | 2b4720fc1ab1c786a246ad8a4a02064649d7c635 (patch) | |
tree | af02cdfe86f481705c092e14a90d4f5c242979a6 /sys/net/raw_usrreq.c | |
parent | fix uninitialised variable warnings from clang (diff) | |
download | wireguard-openbsd-2b4720fc1ab1c786a246ad8a4a02064649d7c635.tar.xz wireguard-openbsd-2b4720fc1ab1c786a246ad8a4a02064649d7c635.zip |
Introduce the NET_LOCK() a rwlock used to serialize accesses to the parts
of the network stack that are not yet ready to be executed in parallel or
where new sleeping points are not possible.
This first pass replace all the entry points leading to ip_output(). This
is done to not introduce new sleeping points when trying to acquire ART's
write lock, needed when a new L2 entry is created via the RT_RESOLVE.
Inputs from and ok bluhm@, ok dlg@
Diffstat (limited to 'sys/net/raw_usrreq.c')
-rw-r--r-- | sys/net/raw_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index 837c1f0901a..32047c97c65 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_usrreq.c,v 1.26 2016/11/21 09:09:06 mpi Exp $ */ +/* $OpenBSD: raw_usrreq.c,v 1.27 2016/12/19 08:36:49 mpi Exp $ */ /* $NetBSD: raw_usrreq.c,v 1.11 1996/02/13 22:00:43 christos Exp $ */ /* @@ -139,7 +139,7 @@ raw_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, int error = 0; int len; - splsoftassert(IPL_SOFTNET); + NET_ASSERT_LOCKED(); if (req == PRU_CONTROL) return (EOPNOTSUPP); |