]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/sched: sch_cake: annotate data-races in cake_dump_stats() (I)
authorEric Dumazet <edumazet@google.com>
Mon, 27 Apr 2026 08:36:02 +0000 (08:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Apr 2026 01:27:50 +0000 (18:27 -0700)
commit44967ac3785ebef6442377708925181d4a0eb1c8
tree2dde8cb5dd3a428f613bcf31e371307b9323ee7f
parentaa6c6d9ee064aabfede4402fd1283424e649ca19
net/sched: sch_cake: annotate data-races in cake_dump_stats() (I)

cake_dump_stats() runs without qdisc spinlock being held.

In this first patch, I add READ_ONCE()/WRITE_ONCE() annotations
for the following fields:

- way_hits
- way_misses
- way_collisions
- sparse_flow_count
- decaying_flow_count

Other annotations are added in following patches, to ease code review.

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>
Link: https://patch.msgid.link/20260427083606.459355-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_cake.c