]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net_sched: sch_ets: implement lockless ets_dump()
authorEric Dumazet <edumazet@google.com>
Tue, 19 Aug 2025 03:31:52 +0000 (23:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:39 +0000 (16:28 +0200)
commit81505f137b3a82b8a9227ab3bea0287e1116abbe
tree05c6ab6d8b5680fbc4c76439cf1b9e14c235cb01
parent00dc616e6cb5cf0390558b219a3a91b1305e6e55
net_sched: sch_ets: implement lockless ets_dump()

[ Upstream commit c5f1dde7f731e7bf2e7c169ca42cb4989fc2f8b9 ]

Instead of relying on RTNL, ets_dump() can use READ_ONCE()
annotations, paired with WRITE_ONCE() ones in ets_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>
Stable-dep-of: 87c6efc5ce9c ("net/sched: ets: use old 'nbands' while purging unused classes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_ets.c