sock: Add sock_owned_by_user_nocheck
This allows checking socket lock ownership with producing lockdep warnings. Signed-off-by: Tom Herbert <tom@quantonium.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f72c4ac695
commit
602f7a2714
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user