Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2003 16:39:57 -0700 (PDT)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 36993 for review
Message-ID:  <200308262339.h7QNdvjj022587@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=36993

Change 36993 by sam@sam_ebb on 2003/08/26 16:39:12

	must lock the dummynet tables when scanning on ipfw rule delete

Affected files ...

.. //depot/projects/netperf/sys/netinet/ip_dummynet.c#5 edit

Differences ...

==== //depot/projects/netperf/sys/netinet/ip_dummynet.c#5 (text+ko) ====

@@ -1419,8 +1419,7 @@
     struct dn_pkt *pkt ;
     struct dn_flow_set *fs ;
 
-    DUMMYNET_LOCK_ASSERT(MA_OWNED);
-
+    DUMMYNET_LOCK();
     /*
      * If the rule references a queue (dn_flow_set), then scan
      * the flow set, otherwise scan pipes. Should do either, but doing
@@ -1435,6 +1434,7 @@
 	    if (pkt->rule == r)
 		pkt->rule = ip_fw_default_rule ;
     }
+    DUMMYNET_UNLOCK();
 }
 
 /*


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308262339.h7QNdvjj022587>