diff options
author | Eric Dumazet | 2024-01-22 11:25:58 +0000 |
---|---|---|
committer | Paolo Abeni | 2024-01-23 15:13:54 +0100 |
commit | 223f55196bbdb182a9b8de6108a0834b5e5e832e (patch) | |
tree | 2d0871db63d5248827224188cc22c69a90dda2bf /net/unix | |
parent | db5914695a84a7b128ec2e4e9272e6e8091753e1 (diff) |
inet_diag: allow concurrent operations
inet_diag_lock_handler() current implementation uses a mutex
to protect inet_diag_table[] array against concurrent changes.
This makes inet_diag dump serialized, thus less scalable
than legacy /proc files.
It is time to switch to full RCU protection.
As a bonus, if a target is statically linked instead of being
modular, inet_diag_lock_handler() & inet_diag_unlock_handler()
reduce to reads only.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions