Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net route: don't take an extra reference of a rtentry fo...
details: https://anonhg.NetBSD.org/src/rev/85b3ee0e052a
branches: trunk
changeset: 993330:85b3ee0e052a
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Sep 05 02:49:09 2018 +0000
description:
route: don't take an extra reference of a rtentry for the delayed free mechanism
Because a reference is already taken at that point.
diffstat:
sys/net/route.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9f773c9a4671 -r 85b3ee0e052a sys/net/route.c
--- a/sys/net/route.c Wed Sep 05 01:20:20 2018 +0000
+++ b/sys/net/route.c Wed Sep 05 02:49:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.211 2018/07/12 02:26:04 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.212 2018/09/05 02:49:09 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.211 2018/07/12 02:26:04 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.212 2018/09/05 02:49:09 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -726,7 +726,7 @@
}
mutex_enter(&rt_free_global.lock);
- rt_ref(rt);
+ /* No need to add a reference here. */
SLIST_INSERT_HEAD(&rt_free_global.queue, rt, rt_free);
if (!rt_free_global.enqueued) {
workqueue_enqueue(rt_free_global.wq, &rt_free_global.wk, NULL);
Home |
Main Index |
Thread Index |
Old Index