summaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs/ip_vs_ctl.c
diff options
context:
space:
mode:
authorSimon Horman2013-05-22 07:50:32 +0200
committerPablo Neira Ayuso2013-05-23 14:23:18 +0200
commita38e5e230e3f4e7bc9195d3e7a81567c888257ca (patch)
tree4535af1dfe823da8100ae291a19155dbc70669e5 /net/netfilter/ipvs/ip_vs_ctl.c
parentsched: add cond_resched_rcu() helper (diff)
downloadkernel-qcow2-linux-a38e5e230e3f4e7bc9195d3e7a81567c888257ca.tar.gz
kernel-qcow2-linux-a38e5e230e3f4e7bc9195d3e7a81567c888257ca.tar.xz
kernel-qcow2-linux-a38e5e230e3f4e7bc9195d3e7a81567c888257ca.zip
ipvs: use cond_resched_rcu() helper when walking connections
This avoids the situation where walking of a large number of connections may prevent scheduling for a long time while also avoiding excessive calls to rcu_read_unlock() and rcu_read_lock(). Note that in the case of !CONFIG_PREEMPT_RCU this will add a call to cond_resched(). Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Acked-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
0 files changed, 0 insertions, 0 deletions