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>
Showing
- include/net/sock.h 10 additions, 2 deletionsinclude/net/sock.h
- net/dccp/ipv4.c 1 addition, 1 deletionnet/dccp/ipv4.c
- net/dccp/ipv6.c 1 addition, 1 deletionnet/dccp/ipv6.c
- net/ipv4/af_inet.c 1 addition, 1 deletionnet/ipv4/af_inet.c
- net/ipv4/cipso_ipv4.c 2 additions, 1 deletionnet/ipv4/cipso_ipv4.c
- net/ipv4/ip_sockglue.c 2 additions, 2 deletionsnet/ipv4/ip_sockglue.c
- net/ipv4/tcp_ipv4.c 3 additions, 5 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/ipv6_sockglue.c 4 additions, 2 deletionsnet/ipv6/ipv6_sockglue.c
- net/ipv6/tcp_ipv6.c 1 addition, 1 deletionnet/ipv6/tcp_ipv6.c
- net/socket.c 1 addition, 1 deletionnet/socket.c
Loading
Please register or sign in to comment