netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] sched: Add cond_resched_rcu_lock() helper
@ 2013-05-01  8:57 Simon Horman
  2013-05-01  8:57 ` [PATCH v3 1/2] " Simon Horman
  2013-05-01  8:57 ` [PATCH v3 2/2] ipvs: Use cond_resched_rcu_lock() helper when dumping connections Simon Horman
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Horman @ 2013-05-01  8:57 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 the two ip_vs functions mentioned above
to use the helper.

Changes since v1 and v2 noted in the changelog of each patch.

Simon Horman (2):
  sched: Add cond_resched_rcu_lock() helper
  ipvs: Use cond_resched_rcu_lock() helper when dumping connections

 include/linux/sched.h           | 11 +++++++++++
 net/netfilter/ipvs/ip_vs_conn.c |  6 ++----
 2 files changed, 13 insertions(+), 4 deletions(-)

-- 
1.8.2.1


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-01  8:57 [PATCH v3 0/2] sched: Add cond_resched_rcu_lock() helper Simon Horman
2013-05-01  8:57 ` [PATCH v3 1/2] " Simon Horman
2013-05-01  8:57 ` [PATCH v3 2/2] ipvs: Use cond_resched_rcu_lock() helper when dumping connections Simon Horman

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).