netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] net/core: remove redundant sk_callback_lock initialization
@ 2024-05-26 14:57 Gou Hao
  2024-05-26 14:57 ` [PATCH 2/2] net/core: move the lockdep-init of sk_callback_lock to sk_init_common() Gou Hao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gou Hao @ 2024-05-26 14:57 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, kuniyu, wuyun.abel, leitao,
	alexander, dhowells, netdev
  Cc: linux-kernel, zhanjun, gouhaojake

sk_callback_lock has already been initialized in sk_init_common().

Signed-off-by: Gou Hao <gouhao@uniontech.com>
---
 net/core/sock.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/core/sock.c b/net/core/sock.c
index 8629f9aecf91..67b10954e0cf 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3460,7 +3460,6 @@ void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid)
 	}
 	sk->sk_uid	=	uid;
 
-	rwlock_init(&sk->sk_callback_lock);
 	if (sk->sk_kern_sock)
 		lockdep_set_class_and_name(
 			&sk->sk_callback_lock,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-28 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-26 14:57 [PATCH 1/2] net/core: remove redundant sk_callback_lock initialization Gou Hao
2024-05-26 14:57 ` [PATCH 2/2] net/core: move the lockdep-init of sk_callback_lock to sk_init_common() Gou Hao
2024-05-28  8:00 ` [PATCH 1/2] net/core: remove redundant sk_callback_lock initialization Breno Leitao
2024-05-28 12:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).