net: sched: use __skb_queue_head_init() where applicable
authorEric Dumazet <edumazet@google.com>
Wed, 17 Sep 2014 15:05:05 +0000 (08:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 20:32:10 +0000 (16:32 -0400)
pfifo_fast and htb use skb lists, without needing their spinlocks.
(They instead use the standard qdisc lock)

We can use __skb_queue_head_init() instead of skb_queue_head_init()
to be consistent.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c
net/sched/sch_htb.c

index 346ef85617d3ee1d72c59a3e11afc3fc1ad94706..11b28f651ad173781660e666ec0b4ca2679ca9ea 100644 (file)
@@ -523,7 +523,7 @@ static int pfifo_fast_init(struct Qdisc *qdisc, struct nlattr *opt)
        struct pfifo_fast_priv *priv = qdisc_priv(qdisc);
 
        for (prio = 0; prio < PFIFO_FAST_BANDS; prio++)
-               skb_queue_head_init(band2list(priv, prio));
+               __skb_queue_head_init(band2list(priv, prio));
 
        /* Can by-pass the queue discipline */
        qdisc->flags |= TCQ_F_CAN_BYPASS;
index 6d16b9b81c284502c27a2c72a263aae5162ced3f..14408f262143087f4fb093153c12fd04e810ecfd 100644 (file)
@@ -1044,7 +1044,7 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
 
        qdisc_watchdog_init(&q->watchdog, sch);
        INIT_WORK(&q->work, htb_work_func);
-       skb_queue_head_init(&q->direct_queue);
+       __skb_queue_head_init(&q->direct_queue);
 
        if (tb[TCA_HTB_DIRECT_QLEN])
                q->direct_qlen = nla_get_u32(tb[TCA_HTB_DIRECT_QLEN]);