android_kernel_motorola_sm6375/kernel/rcu
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul E. McKenney 75ca9c1d96 rcu: Tighten rcu_advance_cbs_nowake() checks
commit 614ddad17f22a22e035e2ea37a04815f50362017 upstream.

Currently, rcu_advance_cbs_nowake() checks that a grace period is in
progress, however, that grace period could end just after the check.
This commit rechecks that a grace period is still in progress while
holding the rcu_node structure's lock.  The grace period cannot end while
the current CPU's rcu_node structure's ->lock is held, thus avoiding
false positives from the WARN_ON_ONCE().

As Daniel Vacek noted, it is not necessary for the rcu_node structure
to have a CPU that has not yet passed through its quiescent state.

Tested-by: Guillaume Morin <guillaume@morinfr.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-29 10:25:09 +01:00
..
Kconfig
Kconfig.debug
Makefile
rcu.h srcu: Fix broken node geometry after early ssp init 2021-07-20 16:10:41 +02:00
rcu_segcblist.c
rcu_segcblist.h
rcuperf.c
rcutorture.c
srcutiny.c
srcutree.c srcu: Fix broken node geometry after early ssp init 2021-07-20 16:10:41 +02:00
sync.c
tiny.c
tree.c rcu: Tighten rcu_advance_cbs_nowake() checks 2022-01-29 10:25:09 +01:00
tree.h
tree_exp.h rcu/exp: Mark current CPU as exp-QS in IPI loop second pass 2022-01-27 09:19:33 +01:00
tree_plugin.h
tree_stall.h rcu/tree: Handle VM stoppage in stall detection 2021-09-15 09:47:26 +02:00
update.c