diff options
author | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:18:42 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:18:43 +0100 |
commit | 2121c43f88f593eea51d483bedd638cb0623c7e2 (patch) | |
tree | 9fda1455c3639361d11162d535305baba2f05adf /tools/testing/selftests/bpf/progs/atomic_bounds.c | |
parent | 736b5545d39ca59d4332a60e56cc8a1a5e264a8e (diff) | |
parent | 622a08e8de9f9ad576fd56e3a2e97a84370a8100 (diff) |
Merge branch 'inet_diag-remove-three-mutexes-in-diag-dumps'
Eric Dumazet says:
====================
inet_diag: remove three mutexes in diag dumps
Surprisingly, inet_diag operations are serialized over a stack
of three mutexes, giving legacy /proc based files an unfair
advantage on modern hosts.
This series removes all of them, making inet_diag operations
(eg iproute2/ss) fully parallel.
1-2) Two first patches are adding data-race annotations
and can be backported to stable kernels.
3-4) inet_diag_table_mutex can be replaced with RCU protection,
if we add corresponding protection against module unload.
5-7) sock_diag_table_mutex can be replaced with RCU protection,
if we add corresponding protection against module unload.
8) sock_diag_mutex is removed, as the old bug it was
working around has been fixed more elegantly.
9) inet_diag_dump_icsk() can skip over empty buckets to reduce
spinlock contention.
====================
Link: https://lore.kernel.org/r/20240122112603.3270097-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/atomic_bounds.c')
0 files changed, 0 insertions, 0 deletions