diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-25 23:02:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-27 20:37:31 +0200 |
commit | 1c31720a74e19bb57f301350a3b03210fa2ba9e3 (patch) | |
tree | 053f29ffa53383eb003ac632971f31e1643ef1d9 /include/net | |
parent | qlge: bugfix: Restoring the vlan setting. (diff) | |
download | linux-1c31720a74e19bb57f301350a3b03210fa2ba9e3.tar.xz linux-1c31720a74e19bb57f301350a3b03210fa2ba9e3.zip |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index a217c838ec0d..ffe9cb719c0e 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -95,7 +95,7 @@ struct dst_entry { unsigned long lastuse; union { struct dst_entry *next; - struct rtable *rt_next; + struct rtable __rcu *rt_next; struct rt6_info *rt6_next; struct dn_route *dn_next; }; |