diff options
author | Julian Anastasov | 2013-03-22 10:46:53 +0100 |
---|---|---|
committer | Pablo Neira Ayuso | 2013-04-02 00:23:58 +0200 |
commit | ceec4c3816818459d90c92152e61371ff5b1d5a1 (patch) | |
tree | 04cfae26902321af225d53b161c9652e5d2bb306 /net/netfilter/ipvs/ip_vs_dh.c | |
parent | ipvs: convert dests to rcu (diff) | |
download | kernel-qcow2-linux-ceec4c3816818459d90c92152e61371ff5b1d5a1.tar.gz kernel-qcow2-linux-ceec4c3816818459d90c92152e61371ff5b1d5a1.tar.xz kernel-qcow2-linux-ceec4c3816818459d90c92152e61371ff5b1d5a1.zip |
ipvs: convert services to rcu
This is the final step in RCU conversion.
Things that are removed:
- svc->usecnt: now svc is accessed under RCU read lock
- svc->inc: and some unused code
- ip_vs_bind_pe and ip_vs_unbind_pe: no ability to replace PE
- __ip_vs_svc_lock: replaced with RCU
- IP_VS_WAIT_WHILE: now readers lookup svcs and dests under
RCU and work in parallel with configuration
Other changes:
- before now, a RCU read-side critical section included the
calling of the schedule method, now it is extended to include
service lookup
- ip_vs_svc_table and ip_vs_svc_fwm_table are now using hlist
- svc->pe and svc->scheduler remain to the end (of grace period),
the schedulers are prepared for such RCU readers
even after done_service is called but they need
to use synchronize_rcu because last ip_vs_scheduler_put
can happen while RCU read-side critical sections
use an outdated svc->scheduler pointer
- as planned, update_service is removed
- empty services can be freed immediately after grace period.
If dests were present, the services are freed from
the dest trash code
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_dh.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_dh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c index 89c27230d93a..ccab120df45e 100644 --- a/net/netfilter/ipvs/ip_vs_dh.c +++ b/net/netfilter/ipvs/ip_vs_dh.c @@ -269,6 +269,7 @@ static int __init ip_vs_dh_init(void) static void __exit ip_vs_dh_cleanup(void) { unregister_ip_vs_scheduler(&ip_vs_dh_scheduler); + synchronize_rcu(); } |