rcu: Fix existing exp request check in sync_sched_exp_online_cleanup()
authorNeeraj Upadhyay <neeraju@codeaurora.org>
Wed, 18 Aug 2021 08:04:00 +0000 (13:34 +0530)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 13 Sep 2021 23:32:46 +0000 (16:32 -0700)
commitf0b2b2df5423fb369ac762c77900bc7765496d58
tree32e5d09f9bb2e6b621e6585ff370b569ede5e232
parent1eac0075ebeecbf5c972f575ac448a0ea92e4f3a
rcu: Fix existing exp request check in sync_sched_exp_online_cleanup()

The sync_sched_exp_online_cleanup() checks to see if RCU needs
an expedited quiescent state from the incoming CPU, sending it
an IPI if so. Before sending IPI, it checks whether expedited
qs need has been already requested for the incoming CPU, by
checking rcu_data.cpu_no_qs.b.exp for the current cpu, on which
sync_sched_exp_online_cleanup() is running. This works for the
case where incoming CPU is same as self. However, for the case
where incoming CPU is different from self, expedited request
won't get marked, which can potentially delay reporting of
expedited quiescent state for the incoming CPU.

Fixes: e015a3411220 ("rcu: Avoid self-IPI in sync_sched_exp_online_cleanup()")
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_exp.h