• Frederic Weisbecker's avatar
    rcu/exp: Handle parallel exp gp kworkers affinity · b67cffcb
    Frederic Weisbecker authored
    Affine the parallel expedited gp kworkers to their respective RCU node
    in order to make them close to the cache their are playing with.
    
    This reuses the boost kthreads machinery that probe into CPU hotplug
    operations such that the kthreads become/stay affine to their respective
    node as soon/long as they contain online CPUs. Otherwise and if the
    current CPU going down was the last online on the leaf node, the related
    kthread is affine to the housekeeping CPUs.
    
    In the long run, this affinity VS CPU hotplug operation game should
    probably be implemented at the generic kthread level.
    Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
    Reviewed-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    [boqun: s/* rcu_boost_task/*rcu_boost_task as reported by checkpatch]
    Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    b67cffcb
tree_plugin.h 41.3 KB