Skip to content

Commit

Permalink
pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jul 18, 2008
1 parent 99194cf commit 93245dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93245dd

Please sign in to comment.