Commit 93245dd6 authored by David S. Miller's avatar David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 99194cff
...@@ -374,7 +374,7 @@ static inline void __qdisc_reset_queue(struct Qdisc *sch, ...@@ -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 * We do not know the backlog in bytes of this list, it
* is up to the caller to correct 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) static inline void qdisc_reset_queue(struct Qdisc *sch)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment