]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit756d79c898ae26eebe8359359923dabb2f0fc16f
treeb49222ce804232d11a5dd54be1ec72439ecccb10
parentfe70e74ee50b214887d9b53f7099bd7f58961552
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: 1d72532bda4f ("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