ipvs: use cond_resched_rcu() helper when walking connections
authorSimon Horman <horms@verge.net.au>
Wed, 22 May 2013 05:50:32 +0000 (14:50 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 May 2013 12:23:18 +0000 (14:23 +0200)
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>

No differences found