Home
last modified time | relevance | path

Searched hist:"161 d4fc07133d0f4628c0529a274826797a02a79" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dsock_diag.cdiff 161d4fc07133d0f4628c0529a274826797a02a79 Mon Jan 22 05:26:00 CST 2024 Eric Dumazet <edumazet@google.com> sock_diag: allow concurrent operations

[ Upstream commit 1d55a6974756cf3979efd2cc68bcece611a44053 ]

sock_diag_broadcast_destroy_work() and __sock_diag_cmd()
are currently using sock_diag_table_mutex to protect
against concurrent sock_diag_handlers[] changes.

This makes inet_diag dump serialized, thus less scalable
than legacy /proc files.

It is time to switch to full RCU protection.

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>
Stable-dep-of: eb02688c5c45 ("ipv6: release nexthop on device removal")
Signed-off-by: Sasha Levin <sashal@kernel.org>