net_ns: add __rcu annotations
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 25 Oct 2010 03:20:11 +0000 (03:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2010 21:18:27 +0000 (14:18 -0700)
commit1c87733d0682547050ccccb400cdac425fa43b39
tree8ec9de7722a2be0e97d9ad6a04d12fb0d298b201
parent6e3f7faf3e8a3e226b1a6b955aac12abf2f2e1b6
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>
include/net/net_namespace.h
net/core/net_namespace.c