pkt_sched: fq: use proper locking in fq_dump_stats()
authorEric Dumazet <edumazet@google.com>
Thu, 15 Sep 2016 23:20:01 +0000 (16:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 02:15:08 +0000 (22:15 -0400)
commit695b4ec0f0a9cf29deabd3ac075911d58b31f42b
treeb49222ce804232d11a5dd54be1ec72439ecccb10
parentdb74a3335e0f645e3139c80bcfc90feb01d8e304
pkt_sched: fq: use proper locking in fq_dump_stats()

When fq is used on 32bit kernels, we need to lock the qdisc before
copying 64bit fields.

Otherwise "tc -s qdisc ..." might report bogus values.

Fixes: afe4fd062416 ("pkt_sched: fq: Fair Queue packet scheduler")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c