Serializer is already held before calling rl_watchdog().
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 7 Oct 2006 02:57:30 +0000 (02:57 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 7 Oct 2006 02:57:30 +0000 (02:57 +0000)
Reported-by: swildner@
sys/dev/netif/rl/if_rl.c

index 32aa72e..855e4ca 100644 (file)
@@ -30,7 +30,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/pci/if_rl.c,v 1.38.2.16 2003/03/05 18:42:33 njl Exp $
- * $DragonFly: src/sys/dev/netif/rl/if_rl.c,v 1.32 2006/08/06 12:49:06 swildner Exp $
+ * $DragonFly: src/sys/dev/netif/rl/if_rl.c,v 1.33 2006/10/07 02:57:30 sephe Exp $
  */
 
 /*
@@ -1604,15 +1604,11 @@ rl_watchdog(struct ifnet *ifp)
 
        device_printf(sc->rl_dev, "watchdog timeout\n");
 
-       lwkt_serialize_enter(ifp->if_serializer);
-
        ifp->if_oerrors++;
 
        rl_txeof(sc);
        rl_rxeof(sc);
        rl_init(sc);
-
-       lwkt_serialize_exit(ifp->if_serializer);
 }
 
 /*