]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net_sched: sch_choke: implement lockless choke_dump()
authorEric Dumazet <edumazet@google.com>
Thu, 18 Apr 2024 07:32:38 +0000 (07:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2024 10:34:07 +0000 (11:34 +0100)
commit7253c1d1e7a52504ffd08138e9843d0a80788690
tree60d373481145b86da0fc8b8fdc9728cd7f9afda3
parent8eb54a421a625a7797549d7bdad3f6c70c49180c
net_sched: sch_choke: implement lockless choke_dump()

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

v2: added a WRITE_ONCE(p->Scell_log, Scell_log)
    per Simon feedback in V1
    Removed the READ_ONCE(q->limit) in choke_enqueue()

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