netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ipvs-next v3 0/2] sched: Add cond_resched_rcu_lock() helper
@ 2013-05-22  5:50 Simon Horman
  2013-05-22  5:50 ` [PATCH ipvs-next v3 1/2] sched: add cond_resched_rcu() helper Simon Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Simon Horman @ 2013-05-22  5:50 UTC (permalink / raw)
  To: Eric Dumazet, Julian Anastasov, Ingo Molnar, Peter Zijlstra,
	Paul E. McKenney
  Cc: lvs-devel, netdev, netfilter-devel, linux-kernel,
	Pablo Neira Ayuso, Dipankar Sarma, Simon Horman

Add a helper that 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().

This series also updates IPVS to use the helper.

Simon Horman (2):
  sched: add cond_resched_rcu() helper
  ipvs: use cond_resched_rcu() helper when walking connections

 include/linux/sched.h           |  9 +++++++++
 net/netfilter/ipvs/ip_vs_conn.c | 23 ++++++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

-- 
1.8.2.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-28  8:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22  5:50 [PATCH ipvs-next v3 0/2] sched: Add cond_resched_rcu_lock() helper Simon Horman
2013-05-22  5:50 ` [PATCH ipvs-next v3 1/2] sched: add cond_resched_rcu() helper Simon Horman
2013-05-23 11:30   ` Pablo Neira Ayuso
2013-05-22  5:50 ` [PATCH ipvs-next v3 2/2] ipvs: use cond_resched_rcu() helper when walking connections Simon Horman
2013-05-23 11:30   ` Pablo Neira Ayuso
2013-05-22  7:54 ` [PATCH ipvs-next v3 0/2] sched: Add cond_resched_rcu_lock() helper Peter Zijlstra
2013-05-22  8:31   ` David Miller
2013-05-22  9:00     ` Peter Zijlstra
2013-05-23  1:11       ` Simon Horman
2013-05-23 11:31     ` Pablo Neira Ayuso
2013-05-28  8:51     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).