[Cake] [PATCH net-next 02/14] net_sched: cake: implement lockless cake_dump()

Toke Høiland-Jørgensen toke at redhat.com
Wed Apr 17 08:25:08 EDT 2024


Simon Horman <horms at kernel.org> writes:

> + Toke Høiland-Jørgensen <toke at toke.dk>
>   cake at lists.bufferbloat.net

Thanks!

> On Mon, Apr 15, 2024 at 01:20:42PM +0000, Eric Dumazet wrote:
>> Instead of relying on RTNL, cake_dump() can use READ_ONCE()
>> annotations, paired with WRITE_ONCE() ones in cake_change().
>> 
>> Signed-off-by: Eric Dumazet <edumazet at google.com>

Just to be sure I understand this correctly: the idea is that with
READ/WRITE_ONCE annotations, we can dump the qdisc options without
taking the RTNL lock. This means that a dump not be consistent across a
concurrent reconfig that changes multiple parameters, but each parameter
will be either the new or the old value. Right?

-Toke



More information about the Cake mailing list