Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Release the lock a little earlier.
details: https://anonhg.NetBSD.org/src/rev/e79dafdb7cae
branches: trunk
changeset: 322011:e79dafdb7cae
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Apr 13 11:18:08 2018 +0000
description:
Release the lock a little earlier.
diffstat:
sys/netinet6/frag6.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 5e644bffd936 -r e79dafdb7cae sys/netinet6/frag6.c
--- a/sys/netinet6/frag6.c Fri Apr 13 11:01:14 2018 +0000
+++ b/sys/netinet6/frag6.c Fri Apr 13 11:18:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: frag6.c,v 1.68 2018/04/13 08:55:50 maxv Exp $ */
+/* $NetBSD: frag6.c,v 1.69 2018/04/13 11:18:08 maxv Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.68 2018/04/13 08:55:50 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.69 2018/04/13 11:18:08 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -501,15 +501,13 @@
IP6_STATINC(IP6_STAT_REASSEMBLED);
in6_ifstat_inc(dstifp, ifs6_reass_ok);
rtcache_unref(rt, &ro);
+ mutex_exit(&frag6_lock);
/*
- * Tell launch routine the next header
+ * Tell launch routine the next header.
*/
-
*mp = m;
*offp = offset;
-
- mutex_exit(&frag6_lock);
return nxt;
dropfrag:
Home |
Main Index |
Thread Index |
Old Index