]> www.infradead.org Git - users/willy/xarray.git/commit
net/core: move the lockdep-init of sk_callback_lock to sk_init_common()
authorGou Hao <gouhao@uniontech.com>
Sun, 26 May 2024 14:57:18 +0000 (22:57 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 May 2024 11:29:36 +0000 (13:29 +0200)
commitde31e96cf423848a1d541142446801430c12da3c
treefae6d3ba22b068c5db6f6bdd1e1cb588f8148691
parentc65b6521115ed478471bf8c4a3687059fcea01aa
net/core: move the lockdep-init of sk_callback_lock to sk_init_common()

In commit cdfbabfb2f0c ("net: Work around lockdep limitation in
sockets that use sockets"), it introduces 'af_kern_callback_keys'
to lockdep-init of sk_callback_lock according to 'sk_kern_sock',
it modifies sock_init_data() only, and sk_clone_lock() calls
sk_init_common() to initialize sk_callback_lock too, so the
lockdep-init of sk_callback_lock should be moved to sk_init_common().

Signed-off-by: Gou Hao <gouhao@uniontech.com>
Link: https://lore.kernel.org/r/20240526145718.9542-2-gouhao@uniontech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/sock.c