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 <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-01-29 10:25:09 +01:00
..
Kconfig
Kconfig.debug
Makefile
rcu.h
rcu_segcblist.c
rcu_segcblist.h
rcuperf.c
rcutorture.c
srcutiny.c
srcutree.c
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
tree_plugin.h
tree_stall.h
update.c