Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Mark callouts of bridge CALLOUT_MPSAFE
details: https://anonhg.NetBSD.org/src/rev/4ff39528651d
branches: trunk
changeset: 357556:4ff39528651d
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Nov 15 06:17:40 2017 +0000
description:
Mark callouts of bridge CALLOUT_MPSAFE
diffstat:
sys/net/if_bridge.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r ae7eaa7fe7ea -r 4ff39528651d sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Wed Nov 15 04:31:48 2017 +0000
+++ b/sys/net/if_bridge.c Wed Nov 15 06:17:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.138 2017/10/25 04:33:15 ozaki-r Exp $ */
+/* $NetBSD: if_bridge.c,v 1.139 2017/11/15 06:17:40 ozaki-r Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.138 2017/10/25 04:33:15 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.139 2017/11/15 06:17:40 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -415,8 +415,8 @@
if (error)
panic("%s: workqueue_create %d\n", __func__, error);
- callout_init(&sc->sc_brcallout, 0);
- callout_init(&sc->sc_bstpcallout, 0);
+ callout_init(&sc->sc_brcallout, CALLOUT_MPSAFE);
+ callout_init(&sc->sc_bstpcallout, CALLOUT_MPSAFE);
mutex_init(&sc->sc_iflist_psref.bip_lock, MUTEX_DEFAULT, IPL_NONE);
PSLIST_INIT(&sc->sc_iflist_psref.bip_iflist);
Home |
Main Index |
Thread Index |
Old Index