net: use proper lockdep annotation in __sk_dst_set()
authorEric Dumazet <edumazet@google.com>
Mon, 6 Mar 2017 19:23:55 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 07:14:39 +0000 (23:14 -0800)
commit95964c6de787eb21468a29b94e9d25e1a24d6a37
tree4aedebd8aac85212bc86194b48512ad88197c960
parent337e63923a5674882be99bbc03b2f0f27c112b8e
net: use proper lockdep annotation in __sk_dst_set()

__sk_dst_set() must be called while we own the socket.

We can get proper lockdep coverage using lockdep_sock_is_held()
and rcu_dereference_protected()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h