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>
This commit is contained in:
committed by
David S. Miller
parent
6e3f7faf3e
commit
1c87733d06
@@ -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
|
||||
|
Reference in New Issue
Block a user