From: Julian Anastasov Date: Thu, 21 Mar 2013 09:58:08 +0000 (+0200) Subject: ipvs: remove rs_lock by using RCU X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~235^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=276472eae063d717b775fdfc87529937402d0e08;p=pandora-kernel.git ipvs: remove rs_lock by using RCU rs_lock was used to protect rs_table (hash table) from updaters (under global mutex) and readers (packet handlers). We can remove rs_lock by using RCU lock for readers. Reclaiming dest only with kfree_rcu is enough because the readers access only fields from the ip_vs_dest structure. Use hlist for rs_table. As we are now using hlist_del_rcu, introduce in_rs_table flag as replacement for the list_empty checks which do not work with RCU. It is needed because only NAT dests are in the rs_table. Signed-off-by: Julian Anastasov Signed-off by: Hans Schillstrom Signed-off-by: Simon Horman --- Reading git-diff-tree failed