diff options
author | Eric Dumazet <edumazet@google.com> | 2024-01-22 11:26:02 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:13:55 +0100 |
commit | f44e64990beb41167bd7c313d90bcf7e290c3582 (patch) | |
tree | b4f8adaee7005f5ede79476faf2e1f34cc6c7bc6 /net/core | |
parent | 86e8921df05c6e9423ab74ab8d41022775d8b83a (diff) | |
download | linux-f44e64990beb41167bd7c313d90bcf7e290c3582.tar.gz linux-f44e64990beb41167bd7c313d90bcf7e290c3582.tar.bz2 linux-f44e64990beb41167bd7c313d90bcf7e290c3582.zip |
sock_diag: remove sock_diag_mutex
sock_diag_rcv() is still serializing its operations using
a mutex, for no good reason.
This came with commit 0a9c73014415 ("[INET_DIAG]: Fix oops
in netlink_rcv_skb"), but the root cause has been fixed
with commit cd40b7d3983c ("[NET]: make netlink user -> kernel
interface synchronious")
Remove this mutex to let multiple threads run concurrently.
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/core')
-rw-r--r-- | net/core/sock_diag.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c index 5c3666431df4..654122838025 100644 --- a/net/core/sock_diag.c +++ b/net/core/sock_diag.c @@ -292,13 +292,9 @@ static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, } } -static DEFINE_MUTEX(sock_diag_mutex); - static void sock_diag_rcv(struct sk_buff *skb) { - mutex_lock(&sock_diag_mutex); netlink_rcv_skb(skb, &sock_diag_rcv_msg); - mutex_unlock(&sock_diag_mutex); } static int sock_diag_bind(struct net *net, int group) |