summaryrefslogtreecommitdiff
path: root/sys/netinet6/frag6.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-10-29 14:56:37 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-10-29 14:56:37 +0000
commit7b5436a077c81aa21598910cbd9f55634db28c1a (patch)
treed70e2c12f423f3e4d5b44cfdec4d28f216b327b6 /sys/netinet6/frag6.c
parentc707a087273faf875fbe063929a72e595ec615dc (diff)
Move NET_{,UN}LOCK into individual slowtimo functions.
Direction suggested by mpi OK mpi, visa
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r--sys/netinet6/frag6.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index a51bfe96650..a5b8ae261be 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frag6.c,v 1.76 2017/10/27 16:11:00 visa Exp $ */
+/* $OpenBSD: frag6.c,v 1.77 2017/10/29 14:56:36 florian Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
@@ -610,7 +610,7 @@ frag6_slowtimo(void)
{
struct ip6q *q6, *nq6;
- NET_ASSERT_LOCKED();
+ NET_LOCK();
IP6Q_LOCK();
TAILQ_FOREACH_SAFE(q6, &frag6_queue, ip6q_queue, nq6)
@@ -630,6 +630,8 @@ frag6_slowtimo(void)
frag6_freef(TAILQ_LAST(&frag6_queue, ip6q_head));
}
IP6Q_UNLOCK();
+
+ NET_UNLOCK();
}
/*