diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-25 07:32:44 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-26 01:18:28 +0400 |
commit | 43a951e9994fd218ab4e641f94a2fc53556c3675 (patch) | |
tree | 497fe39185131f1d729c980c264562ff5cab86e8 /include | |
parent | 0d7da9ddd9a4eb7808698d04b98bf9d62d02649b (diff) | |
download | linux-43a951e9994fd218ab4e641f94a2fc53556c3675.tar.xz |
ipv4: add __rcu annotations to ip_ra_chain
Add __rcu annotations to :
(struct ip_ra_chain)->next
struct ip_ra_chain *ip_ra_chain;
And use appropriate rcu primitives.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index dbee3fe260e1..86e2b182a0c0 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -59,7 +59,7 @@ struct ipcm_cookie { #define IPCB(skb) ((struct inet_skb_parm*)((skb)->cb)) struct ip_ra_chain { - struct ip_ra_chain *next; + struct ip_ra_chain __rcu *next; struct sock *sk; union { void (*destructor)(struct sock *); @@ -68,7 +68,7 @@ struct ip_ra_chain { struct rcu_head rcu; }; -extern struct ip_ra_chain *ip_ra_chain; +extern struct ip_ra_chain __rcu *ip_ra_chain; /* IP flags. */ #define IP_CE 0x8000 /* Flag: "Congestion" */ |