]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84f8aac6b2ecddbaab1cfbc97f5a6ebf22b82f16
tree8ec9de7722a2be0e97d9ad6a04d12fb0d298b201
parent9bf40570f12979fdbdad3ef26fd5c919a75a5535
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