summaryrefslogtreecommitdiffstats
path: root/include/net/net_namespace.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-25 05:20:11 +0200
committerDavid S. Miller <davem@davemloft.net>2010-10-25 23:18:27 +0200
commit1c87733d0682547050ccccb400cdac425fa43b39 (patch)
tree8ec9de7722a2be0e97d9ad6a04d12fb0d298b201 /include/net/net_namespace.h
parentrps: add __rcu annotations (diff)
downloadlinux-1c87733d0682547050ccccb400cdac425fa43b39.tar.xz
linux-1c87733d0682547050ccccb400cdac425fa43b39.zip
net_ns: add __rcu annotations
add __rcu annotation to (struct net)->gen, and use rcu_dereference_protected() in net_assign_generic() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r--include/net/net_namespace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 65af9a07cf76..1bf812b21fb7 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -88,7 +88,7 @@ struct net {
#ifdef CONFIG_WEXT_CORE
struct sk_buff_head wext_nlevents;
#endif
- struct net_generic *gen;
+ struct net_generic __rcu *gen;
/* Note : following structs are cache line aligned */
#ifdef CONFIG_XFRM