net: make namespace iteration possible under RCU
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 10 Jul 2009 09:51:33 +0000 (09:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Jul 2009 21:03:25 +0000 (14:03 -0700)
commit11a28d373ed2539a110d56419457e2e7db221ac7
treed1460cb057299c89ff34b20821e30c8bfc7e589a
parent6c04bb18ddd633b7feac2c8fe2ae0bf61d20ca7a
net: make namespace iteration possible under RCU

All we need to take care of is using proper RCU list
add/del primitives and inserting a synchronize_rcu()
at one place to make sure the exit notifiers are run
after everybody has stopped iterating the list.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c