From: David S. Miller Date: Thu, 17 Jul 2008 11:03:43 +0000 (-0700) Subject: pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue() X-Git-Tag: v2.6.27-rc1~969^2~53 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93245dd6d356b864f6676396a9f3edecbd378ed0;p=linux-2.6 pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue() We have to have exclusive access to the given qdisc anyways, so doing even more locking is superfluous. Signed-off-by: David S. Miller --- diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 2902a42564..0a158ff4de 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -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)