[PATCH v2 0/2] sched: Add cond_resched_rcu_lock() helper
From: Simon Horman
Date: Mon Apr 29 2013 - 22:53:57 EST
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 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/