rcu/exp: Remove full barrier upon main thread wakeup
authorFrederic Weisbecker <frederic@kernel.org>
Mon, 18 Dec 2023 23:19:16 +0000 (00:19 +0100)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 14 Feb 2024 15:51:35 +0000 (07:51 -0800)
commita7e4074dccd282f494d542150ef6235b3270b0a2
treee8ba33ef84a11aa0fae9c361b9065719ff60c98b
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3
rcu/exp: Remove full barrier upon main thread wakeup

When an expedited grace period is ending, care must be taken so that all
the quiescent states propagated up to the root are correctly ordered
against the wake up of the main expedited grace period workqueue.

This ordering is already carried through the root rnp locking augmented
by an smp_mb__after_unlock_lock() barrier.

Therefore the explicit smp_mb() placed before the wake up is not needed
and can be removed.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/tree_exp.h