net_sched: sch_cbs: implement lockless cbs_dump()
authorEric Dumazet <edumazet@google.com>
Thu, 18 Apr 2024 07:32:37 +0000 (07:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2024 10:34:07 +0000 (11:34 +0100)
commit8eb54a421a625a7797549d7bdad3f6c70c49180c
treeed60460486da4b8590f5ffa0800689a68c6a1b8c
parent9263650102bb8e4e6806587de395aae02ef76deb
net_sched: sch_cbs: implement lockless cbs_dump()

Instead of relying on RTNL, cbs_dump() can use READ_ONCE()
annotations, paired with WRITE_ONCE() ones in cbs_change().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cbs.c