From: Johannes Berg Date: Fri, 10 Jul 2009 09:51:32 +0000 (+0000) Subject: netlink: use call_rcu for netlink_change_ngroups X-Git-Tag: v2.6.32-rc1~703^2~639 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c04bb18ddd633b7feac2c8fe2ae0bf61d20ca7a;p=pandora-kernel.git netlink: use call_rcu for netlink_change_ngroups For the network namespace work in generic netlink I need to be able to call this function under rcu_read_lock(), otherwise the locking becomes a nightmare and more locks would be needed. Instead, just embed a struct rcu_head (actually a struct listeners_rcu_head that also carries the pointer to the memory block) into the listeners memory so we can use call_rcu() instead of synchronising and then freeing. No rcu_barrier() is needed since this code cannot be modular. Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- Reading git-diff-tree failed