Commit 602f7a27 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller

sock: Add sock_owned_by_user_nocheck

This allows checking socket lock ownership with producing lockdep
warnings.
Signed-off-by: default avatarTom Herbert <tom@quantonium.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f72c4ac6
...@@ -1514,6 +1514,11 @@ static inline bool sock_owned_by_user(const struct sock *sk) ...@@ -1514,6 +1514,11 @@ static inline bool sock_owned_by_user(const struct sock *sk)
return sk->sk_lock.owned; return sk->sk_lock.owned;
} }
static inline bool sock_owned_by_user_nocheck(const struct sock *sk)
{
return sk->sk_lock.owned;
}
/* no reclassification while locks are held */ /* no reclassification while locks are held */
static inline bool sock_allow_reclassification(const struct sock *csk) static inline bool sock_allow_reclassification(const struct sock *csk)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment