net: fix a lockdep rcu warning in __sk_dst_set()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 26 Apr 2010 20:40:43 +0000 (20:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2010 19:53:26 +0000 (12:53 -0700)
commit0b53ff2eadb1db6818894435f85989fb05d7e718
tree6c7ecececdb6a094c68b4af122aed788648a2b13
parent18f9f1365dad1237072d360bc487d8c7a1cae532
net: fix a lockdep rcu warning in __sk_dst_set()

__sk_dst_set() might be called while no state can be integrated in a
rcu_dereference_check() condition.

So use rcu_dereference_raw() to shutup lockdep warnings (if
CONFIG_PROVE_RCU is set)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h