ipv4: add __rcu annotations to routes.c
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 25 Oct 2010 21:02:07 +0000 (21:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:31 +0000 (11:37 -0700)
commit1c31720a74e19bb57f301350a3b03210fa2ba9e3
tree053f29ffa53383eb003ac632971f31e1643ef1d9
parentc1b60092cf307fef12f793abf7cf8167e26a6ccf
ipv4: add __rcu annotations to routes.c

Add __rcu annotations to :
        (struct dst_entry)->rt_next
        (struct rt_hash_bucket)->chain

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/dst.h
net/ipv4/route.c