rcu: IPI all CPUs at GP start for strict GPs
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 7 Aug 2020 02:21:48 +0000 (19:21 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:40:26 +0000 (18:40 -0700)
commit933ada2c3310aa88807e65c8d498b74a2159a9a2
tree3a1a7aaf22c5fee7531a343df5cc037aa5c2ed3c
parent1a2f5d57a33f7b9189b6b3e997eb858301482d79
rcu: IPI all CPUs at GP start for strict GPs

Currently, each CPU discovers the beginning of a given grace period
on its own time, which is again good for efficiency but bad for fast
grace periods.  This commit therefore uses on_each_cpu() to IPI each
CPU after grace-period initialization in order to inform each CPU of
the new 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: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c