mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
pkt_sched: fq: use proper locking in fq_dump_stats()
commit695b4ec0f0upstream. 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:afe4fd0624("pkt_sched: fq: Fair Queue packet scheduler") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> [bwh: Backported to 3.16: keep using ktime_to_ns(ktime_get())] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
1fed0e6113
commit
353c74c7f5
1 changed files with 18 additions and 14 deletions
Loading…
Add table
Add a link
Reference in a new issue