diff mbox

linux-next 20141208 - net/sched/sch_fq_codel.c:97 suspicious RCU

Message ID CANn89i+fLqXT2J-98UhC8x9sZCF1kh-twvZ2FXEAgOgKS5-oYg@mail.gmail.com
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Eric Dumazet Dec. 9, 2014, 7 p.m. UTC
On Tue, Dec 9, 2014 at 10:54 AM,  <Valdis.Kletnieks@vt.edu> wrote:

> You want a patch, or you got it already?
>

If you could submit it formally, this would be great , thanks !

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c
index b9ca32ebc1de..1e52decb7b59 100644
--- a/net/sched/sch_fq_codel.c
+++ b/net/sched/sch_fq_codel.c
@@ -94,7 +94,7 @@  static unsigned int fq_codel_classify(struct sk_buff
*skb, struct Qdisc *sch,
            TC_H_MIN(skb->priority) <= q->flows_cnt)
                return TC_H_MIN(skb->priority);

-       filter = rcu_dereference(q->filter_list);
+filter = rcu_dereference_bh(q->filter_list);
        if (!filter)
                return fq_codel_hash(q, skb) + 1;