pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue()
authorDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2008 11:03:43 +0000 (04:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:32 +0000 (19:21 -0700)
We have to have exclusive access to the given qdisc anyways, so
doing even more locking is superfluous.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h

index 2902a42564f0b707e0220b29a52aacf7058ec469..0a158ff4de12623822be2dc6124dafe431c837d5 100644 (file)
@@ -374,7 +374,7 @@ static inline void __qdisc_reset_queue(struct Qdisc *sch,
         * We do not know the backlog in bytes of this list, it
         * is up to the caller to correct it
         */
-       skb_queue_purge(list);
+       __skb_queue_purge(list);
 }
 
 static inline void qdisc_reset_queue(struct Qdisc *sch)