net: introduce lockdep_is_held and update various places to use it
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 5 Apr 2016 15:10:15 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Apr 2016 20:44:14 +0000 (16:44 -0400)
commit1e1d04e678cf72442f57ce82803c7a407769135f
tree8ea1054b59c4abe211ffff0b81f34589b0089f22
parent61881cfb5ad80c1d0a46ca6d08b7e271892b2ff6
net: introduce lockdep_is_held and update various places to use it

The socket is either locked if we hold the slock spin_lock for
lock_sock_fast and unlock_sock_fast or we own the lock (sk_lock.owned
!= 0). Check for this and at the same time improve that the current
thread/cpu is really holding the lock.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/af_inet.c
net/ipv4/cipso_ipv4.c
net/ipv4/ip_sockglue.c
net/ipv4/tcp_ipv4.c
net/ipv6/ipv6_sockglue.c
net/ipv6/tcp_ipv6.c
net/socket.c