• Paul E. McKenney's avatar
    rcu: Accelerate callback processing on CPUs not detecting GP end · b32e9eb6
    Paul E. McKenney authored
    An earlier fix for a race resulted in a situation where the CPUs
    other than the CPU that detected the end of the grace period would
    not process their callbacks until the next grace period started.
    
    This means that these other CPUs would unnecessarily demand that an
    extra grace period be started.
    
    This patch eliminates this extra grace period and speeds callback
    processing by propagating rsp->completed to the rcu_node structures
    in the case where the CPU detecting the end of the grace period
    sees no reason to start a new grace period.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: laijs@cn.fujitsu.com
    Cc: dipankar@in.ibm.com
    Cc: mathieu.desnoyers@polymtl.ca
    Cc: josh@joshtriplett.org
    Cc: dvhltc@us.ibm.com
    Cc: niv@us.ibm.com
    Cc: peterz@infradead.org
    Cc: rostedt@goodmis.org
    Cc: Valdis.Kletnieks@vt.edu
    Cc: dhowells@redhat.com
    LKML-Reference: <1258094104417-git-send-email->
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b32e9eb6
rcutree.c 51.8 KB