Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys in_pcbdetach: move ip_freemoptions() under softnet_lock ...
details: https://anonhg.NetBSD.org/src/rev/bab99735727b
branches: trunk
changeset: 332104:bab99735727b
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Sep 07 00:50:56 2014 +0000
description:
in_pcbdetach: move ip_freemoptions() under softnet_lock for now (this will
be changed back once other IP paths become MP-safe). Same for IPv6 routine.
This partially reverts 1.150 of in_pcb.c and 1.127 of in6_pcb.c changes.
diffstat:
sys/netinet/in_pcb.c | 6 +++---
sys/netinet6/in6_pcb.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (58 lines):
diff -r 2e76a17c7fe4 -r bab99735727b sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c Sat Sep 06 23:04:10 2014 +0000
+++ b/sys/netinet/in_pcb.c Sun Sep 07 00:50:56 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_pcb.c,v 1.151 2014/08/05 05:24:26 rtr Exp $ */
+/* $NetBSD: in_pcb.c,v 1.152 2014/09/07 00:50:56 rmind Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.151 2014/08/05 05:24:26 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.152 2014/09/07 00:50:56 rmind Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -606,9 +606,9 @@
m_free(inp->inp_options);
}
rtcache_free(&inp->inp_route);
+ ip_freemoptions(inp->inp_moptions);
sofree(so); /* drops the socket's lock */
- ip_freemoptions(inp->inp_moptions);
pool_put(&inpcb_pool, inp);
mutex_enter(softnet_lock); /* reacquire the softnet_lock */
}
diff -r 2e76a17c7fe4 -r bab99735727b sys/netinet6/in6_pcb.c
--- a/sys/netinet6/in6_pcb.c Sat Sep 06 23:04:10 2014 +0000
+++ b/sys/netinet6/in6_pcb.c Sun Sep 07 00:50:56 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_pcb.c,v 1.128 2014/08/05 05:24:27 rtr Exp $ */
+/* $NetBSD: in6_pcb.c,v 1.129 2014/09/07 00:50:56 rmind Exp $ */
/* $KAME: in6_pcb.c,v 1.84 2001/02/08 18:02:08 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.128 2014/08/05 05:24:27 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.129 2014/09/07 00:50:56 rmind Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -617,9 +617,9 @@
free(in6p->in6p_outputopts, M_IP6OPT);
}
rtcache_free(&in6p->in6p_route);
+ ip6_freemoptions(in6p->in6p_moptions);
sofree(so); /* drops the socket's lock */
- ip6_freemoptions(in6p->in6p_moptions);
pool_put(&in6pcb_pool, in6p);
mutex_enter(softnet_lock); /* reacquire it */
}
Home |
Main Index |
Thread Index |
Old Index