lkml.org 
[lkml]   [2013]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/2] sched: Add cond_resched_rcu_lock() helper
    Date
    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



    \
     
     \ /
      Last update: 2013-04-26 04:21    [W:2.140 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site