]> 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 12:15:29 +0000 (08:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:24:32 +0000 (16:24 +0200)
commit1980d8d38cef29974bf821781389cd566926ddf8
treec851b54da264337b97f1c6c8f05c9bdca93831e5
parentde127abe923ac505d6f84e6d0e2977fe0e0f4c2b
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