]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: preparations for using rcu in schedulers
authorJulian Anastasov <ja@ssi.bg>
Fri, 22 Mar 2013 09:46:37 +0000 (11:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Apr 2013 22:23:47 +0000 (00:23 +0200)
commit73f85a8c2045bb336278272c0b081a4d69557dc1
tree72d44c02f38bbe96bc4a468da732abbd23037008
parent9bb9adff89849b01e9021348b5adf4f31098bfc8
ipvs: preparations for using rcu in schedulers

Allow schedulers to use rcu_dereference when
returning destination on lookup. The RCU read-side critical
section will allow ip_vs_bind_dest to get dest refcnt as
preparation for the step where destinations will be
deleted without an IP_VS_WAIT_WHILE guard that holds the
packet processing during update.

Add new optional scheduler methods add_dest,
del_dest and upd_dest. For now the methods are called
together with update_service but update_service will be
removed in a following change.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_ctl.c