• Paul E. McKenney's avatar
    rcu: IPI all CPUs at GP end for strict GPs · 4e025f52
    Paul E. McKenney authored
    Currently, each CPU discovers the end of a given grace period on its
    own time, which is again good for efficiency but bad for fast grace
    periods, given that it is things like kfree() within the RCU callbacks
    that will cause trouble for pointers leaked from RCU read-side critical
    sections.  This commit therefore uses on_each_cpu() to IPI each CPU
    after grace-period cleanup in order to inform each CPU of the end of
    the old grace period in a timely manner, but only in kernels build with
    CONFIG_RCU_STRICT_GRACE_PERIOD=y.
    
    Reported-by Jann Horn <jannh@google.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    4e025f52
tree.c 142 KB