Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet remove unnecessary splnet before pool_{get, put}
details: https://anonhg.NetBSD.org/src/rev/de4cc53d02be
branches: trunk
changeset: 816027:de4cc53d02be
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Jun 13 08:04:44 2016 +0000
description:
remove unnecessary splnet before pool_{get,put}
diffstat:
sys/netinet/ip_flow.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r c7b3f0b8ed68 -r de4cc53d02be sys/netinet/ip_flow.c
--- a/sys/netinet/ip_flow.c Mon Jun 13 06:17:19 2016 +0000
+++ b/sys/netinet/ip_flow.c Mon Jun 13 08:04:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_flow.c,v 1.67 2016/06/10 13:31:44 ozaki-r Exp $ */
+/* $NetBSD: ip_flow.c,v 1.68 2016/06/13 08:04:44 knakahara Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.67 2016/06/10 13:31:44 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.68 2016/06/13 08:04:44 knakahara Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -346,9 +346,7 @@
ipflow_addstats(ipf);
rtcache_free(&ipf->ipf_ro);
ipflow_inuse--;
- s = splnet();
pool_put(&ipflow_pool, ipf);
- splx(s);
}
struct ipflow *
@@ -453,9 +451,7 @@
if (ipflow_inuse >= ip_maxflows) {
ipf = ipflow_reap(true);
} else {
- s = splnet();
ipf = pool_get(&ipflow_pool, PR_NOWAIT);
- splx(s);
if (ipf == NULL)
goto out;
ipflow_inuse++;
Home |
Main Index |
Thread Index |
Old Index