diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-25 03:32:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-25 14:18:28 -0700 |
commit | 43a951e9994fd218ab4e641f94a2fc53556c3675 (patch) | |
tree | 497fe39185131f1d729c980c264562ff5cab86e8 /include/net | |
parent | 0d7da9ddd9a4eb7808698d04b98bf9d62d02649b (diff) | |
download | op-kernel-dev-43a951e9994fd218ab4e641f94a2fc53556c3675.zip op-kernel-dev-43a951e9994fd218ab4e641f94a2fc53556c3675.tar.gz |
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/net')
-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 dbee3fe..86e2b18 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" */ |