aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2020-11-27 11:10:22 +0100
committerJakub Kicinski <kuba@kernel.org>2020-11-30 17:55:23 -0800
commitad80b0fc6e7f56bb1b09af86749ff3014477cfe6 (patch)
tree607bccd7a619c87713dd56b97ae6124b90e89070 /include/net/sock.h
parentbe5724240b390b1192635d942d4bd3df57bb6e3c (diff)
downloadlinux-ad80b0fc6e7f56bb1b09af86749ff3014477cfe6.tar.gz
mptcp: open code mptcp variant for lock_sock
This allows invoking an additional callback under the socket spin lock. Will be used by the next patches to avoid additional spin lock contention. Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 80469c2c448d4c..f59764614e308e 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1590,6 +1590,7 @@ static inline void lock_sock(struct sock *sk)
lock_sock_nested(sk, 0);
}
+void __lock_sock(struct sock *sk);
void __release_sock(struct sock *sk);
void release_sock(struct sock *sk);