]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b02ddfd417d71d559dd9702aeeb657f1a2d2c93
treed1460cb057299c89ff34b20821e30c8bfc7e589a
parent9df5b0f5889aaa42b6cfb331cb7b36905f95a4e8
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