diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-08-18 20:17:00 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-08-18 20:17:00 +0000 |
commit | 805a9715f8678d8ebbe70fe705dfc123c6821126 (patch) | |
tree | e71502fcaac7244133de0bef1a0c265b5f621ef0 /sys/net/bridgestp.c | |
parent | f905920cb9de60ab1b2da196da82c6678ea145ff (diff) | |
download | FreeBSD-src-805a9715f8678d8ebbe70fe705dfc123c6821126.zip FreeBSD-src-805a9715f8678d8ebbe70fe705dfc123c6821126.tar.gz |
Mark the callouts as MPSAFE as if_bridge has been giant-free since day 1.
Use the SMP friendly callout_init_mtx() while we are here.
Approved by: mlaier (mentor)
MFC after: 3 days
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r-- | sys/net/bridgestp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 6e8f0a1..582d5a6 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -1092,7 +1092,7 @@ bstp_tick(void *arg) struct bridge_softc *sc = arg; struct bridge_iflist *bif; - BRIDGE_LOCK(sc); + BRIDGE_LOCK_ASSERT(sc); #if 0 LIST_FOREACH(bif, &sc->sc_iflist, bif_next) { @@ -1141,8 +1141,6 @@ bstp_tick(void *arg) if (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) callout_reset(&sc->sc_bstpcallout, hz, bstp_tick, sc); - - BRIDGE_UNLOCK(sc); } void |