Skip to content

Commit d3ca787

Browse files
zhouzhouyi-hubgregkh
authored andcommitted
rcu: Fix macro name CONFIG_TASKS_RCU_TRACE
[ Upstream commit fed31a4 ] This commit fixes several typos where CONFIG_TASKS_RCU_TRACE should instead be CONFIG_TASKS_TRACE_RCU. Among other things, these typos could cause CONFIG_TASKS_TRACE_RCU_READ_MB=y kernels to suffer from memory-ordering bugs that could result in false-positive quiescent states and too-short grace periods. Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 34609fa commit d3ca787

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/linux/rcupdate.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void synchronize_rcu_tasks(void);
163163
# define synchronize_rcu_tasks synchronize_rcu
164164
# endif
165165

166-
# ifdef CONFIG_TASKS_RCU_TRACE
166+
# ifdef CONFIG_TASKS_TRACE_RCU
167167
# define rcu_tasks_trace_qs(t) \
168168
do { \
169169
if (!likely(READ_ONCE((t)->trc_reader_checked)) && \

‎kernel/rcu/tree_plugin.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,17 +2591,17 @@ static void noinstr rcu_dynticks_task_exit(void)
25912591
/* Turn on heavyweight RCU tasks trace readers on idle/user entry. */
25922592
static void rcu_dynticks_task_trace_enter(void)
25932593
{
2594-
#ifdef CONFIG_TASKS_RCU_TRACE
2594+
#ifdef CONFIG_TASKS_TRACE_RCU
25952595
if (IS_ENABLED(CONFIG_TASKS_TRACE_RCU_READ_MB))
25962596
current->trc_reader_special.b.need_mb = true;
2597-
#endif /* #ifdef CONFIG_TASKS_RCU_TRACE */
2597+
#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */
25982598
}
25992599

26002600
/* Turn off heavyweight RCU tasks trace readers on idle/user exit. */
26012601
static void rcu_dynticks_task_trace_exit(void)
26022602
{
2603-
#ifdef CONFIG_TASKS_RCU_TRACE
2603+
#ifdef CONFIG_TASKS_TRACE_RCU
26042604
if (IS_ENABLED(CONFIG_TASKS_TRACE_RCU_READ_MB))
26052605
current->trc_reader_special.b.need_mb = false;
2606-
#endif /* #ifdef CONFIG_TASKS_RCU_TRACE */
2606+
#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */
26072607
}

0 commit comments

Comments
 (0)