From: Simon Horman Date: Wed, 22 May 2013 05:50:32 +0000 (+0900) Subject: ipvs: use cond_resched_rcu() helper when walking connections X-Git-Tag: v3.11-rc1~16^2~172^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a38e5e230e3f4e7bc9195d3e7a81567c888257ca;p=pandora-kernel.git 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 Signed-off-by: Simon Horman Acked-by: Peter Zijlstra Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed