diff options
author | Zqiang <qiang1.zhang@intel.com> | 2022-06-16 21:53:47 +0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-08-31 05:03:14 -0700 |
commit | 6d60ea03ac2d3dcf6ddee6b45aa7213d8b0461c5 (patch) | |
tree | 8ba1521d2d801198d433b30e85054db9afd9799c /kernel/rcu/tiny.c | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) |
rcu: Fix rcu_read_unlock_strict() strict QS reporting
Kernels built with CONFIG_PREEMPT=n and CONFIG_RCU_STRICT_GRACE_PERIOD=y
report the quiescent state directly from the outermost rcu_read_unlock().
However, the current CPU's rcu_data structure's ->cpu_no_qs.b.norm
might still be set, in which case rcu_report_qs_rdp() will exit early,
thus failing to report quiescent state.
This commit therefore causes rcu_read_unlock_strict() to clear
CPU's rcu_data structure's ->cpu_no_qs.b.norm field before invoking
rcu_report_qs_rdp().
Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tiny.c')
0 files changed, 0 insertions, 0 deletions