lvs-devel
|
To: | Eric Dumazet <eric.dumazet@xxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx> |
---|---|
Subject: | [PATCH 0/2] sched: Add cond_resched_rcu_lock() helper |
Cc: | lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>, Dipankar Sarma <dipankar@xxxxxxxxxx>, "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx>, Simon Horman <horms@xxxxxxxxxxxx> |
From: | Simon Horman <horms@xxxxxxxxxxxx> |
Date: | Fri, 26 Apr 2013 10:45:06 +0900 |
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. As suggested by Eric Dumazet. Simon Horman (2): sched: Add cond_resched_rcu_lock() helper ipvs: Use cond_resched_rcu_lock() helper when dumping connections include/linux/sched.h | 9 +++++++++ net/netfilter/ipvs/ip_vs_conn.c | 6 ++---- 2 files changed, 11 insertions(+), 4 deletions(-) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [PATCH ipvs-next] ipvs: Remove rcu_read_unlock();rcu_read_lock();, Pablo Neira Ayuso |
---|---|
Next by Date: | [PATCH 2/2] ipvs: Use cond_resched_rcu_lock() helper when dumping connections, Simon Horman |
Previous by Thread: | [PATCH 1/1] ip_vs_sip_fill_param() BUG: bad check of return value, Hans Schillstrom |
Next by Thread: | [PATCH 2/2] ipvs: Use cond_resched_rcu_lock() helper when dumping connections, Simon Horman |
Indexes: | [Date] [Thread] [Top] [All Lists] |