tunnels: add __rcu annotations
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 25 Oct 2010 21:01:26 +0000 (21:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:32 +0000 (11:37 -0700)
commitb33eab08445d86c3d0dec3111ce10df561328705
tree381a37141d4da9cf6cb3a8c8c37c6363d856f8e4
parente0ad61ec867fdd262804afa7a68e11fc9930c2b9
tunnels: add __rcu annotations

Add __rcu annotations to :
        (struct ip_tunnel)->prl
        (struct ip_tunnel_prl_entry)->next
        (struct xfrm_tunnel)->next
struct xfrm_tunnel *tunnel4_handlers
struct xfrm_tunnel *tunnel64_handlers

And use appropriate rcu primitives to reduce sparse warnings if
CONFIG_SPARSE_RCU_POINTER=y

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipip.h
include/net/xfrm.h
net/ipv4/tunnel4.c