Re: [PATCH ipvs-next v3 1/2] sched: add cond_resched_rcu() helper

2013-05-23 Thread Pablo Neira Ayuso
On Wed, May 22, 2013 at 02:50:31PM +0900, Simon Horman wrote: > This is intended for use in loops which read data protected by RCU and may > have a large number of iterations. Such an example is dumping the list of > connections known to IPVS: ip_vs_conn_array() and ip_vs_conn_seq_next(). > > The

[PATCH ipvs-next v3 1/2] sched: add cond_resched_rcu() helper

2013-05-21 Thread Simon Horman
This is intended for use in loops which read data protected by RCU and may have a large number of iterations. Such an example is dumping the list of connections known to IPVS: ip_vs_conn_array() and ip_vs_conn_seq_next(). The benefits are for CONFIG_PREEMPT_RCU=y where we save CPU cycles by movin