]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/sched: sch_cake: annotate data-races in cake_dump_class_stats (II)
authorEric Dumazet <edumazet@google.com>
Thu, 30 Apr 2026 06:16:10 +0000 (06:16 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 2 May 2026 23:59:09 +0000 (16:59 -0700)
commit67dc6c56b871617deac85b9f72500b69b1fdf835
treebe72c8905d19d3bdf90def948ba6df0aa19a157a
parent046111a1a35a1720748f254377d3d1663664ea61
net/sched: sch_cake: annotate data-races in cake_dump_class_stats (II)

cake_dump_class_stats() runs without qdisc spinlock being held.

In this second patch, I add READ_ONCE()/WRITE_ONCE() annotations for:

- flow->deficit
- flow->cvars.dropping
- flow->cvars.count
- flow->cvars.p_drop
- flow->cvars.blue_timer
- flow->cvars.drop_next

Fixes: 046f6fd5daef ("sched: Add Common Applications Kept Enhanced (cake) qdisc")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260430061610.3503483-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_cake.c