Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1692579pxb; Thu, 16 Sep 2021 13:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaW+ZcXWbFwDgsTK/HRZShuyFJvvOZAWYNlIzopevQdcLrocS+d/DZmoSQu7PtQ2dbTbJ+ X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr8487595edd.152.1631822888358; Thu, 16 Sep 2021 13:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631822888; cv=none; d=google.com; s=arc-20160816; b=RNwkkoCubH+G4QaDPJlb3uAjtZDzklbwgWAoK8KJXlEEUFL6Fth9u/mZf3B9tWusTW 5tTdf0GwAUH4NcRMCbtaH8yIm6tQACFDBjCx2GW4u4MhJBkSULC9d+9FIN5ZZdeJ/58h vNXh75cZ9rDlr/yhM+oB2c8jC0/+qOUp3z0Ut0H2UvdEUXf8TAC8NQOiZp7bGqT5eQkn wFaK0ms7pzQGa9leecIrdplDirXhqOA4fVtvv+Rs4/ZUIrCe6JNw3BRIxkl971m8e978 PIm/CPSR/ZU/h87EsjAiryuvjdk7GjTHRfk8sFbLzRYAC2BYG0F9PvyG6Mna8Vm7snNz D8Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1zzsLXOKVRuuuHMCso5yvJnjVjLRgwhuXEUU8vHFN+I=; b=yhA8xaUI/u5NNIpZRWJ++vdXsJKFmPey2IBwSLHjRsGNkbuoWd2yaNMwRREGuSC1kF EfxQwqlitCh2K3Fxq0/zeld48IFkU44yol2b/NMg6nNy43Jx/u4/Xrt3Y52TMtVnyXtK /jxJ1VgMREiJ+LFMR1IM71YFu/ggojv6IreK3Z3HDFioihNDpSCSg+4RvwEb5QQA5yVl i1IcbXX1ufS4pmqZpjnYev9d9P+VniFMDFg55QoquQnufdi2ntJEDNTIx2zO/lrHBpkf 6ItVtQPrK4qy/QfjdKFo4A3WcIwKhofbj7Duvq369n/KAxKLYy58i2bvBNS/3ExpQntn el9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E0uQiXA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si4253532ejm.455.2021.09.16.13.07.22; Thu, 16 Sep 2021 13:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E0uQiXA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235575AbhIPQUe (ORCPT + 99 others); Thu, 16 Sep 2021 12:20:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:47920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238868AbhIPQLm (ORCPT ); Thu, 16 Sep 2021 12:11:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE2416137A; Thu, 16 Sep 2021 16:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808544; bh=+fLK7laVA3H5s1F118MwcV8hwLjCEOdsVd9d0wNqu4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E0uQiXA4fdHPQy3icHaoDdksqrxlV4MRtyNeWf2LwnUaFAlUA08tEsez1vZS8jNBv iLucDyMYYHDIlh/Ryms8AifbBDfbvqpAASpmtZ9FdTtCqwlxCLxcWZ/DlDbVh7Cbv4 SSaYJkv32HI2bJJ53Y2Z0WUPQlhB393OrzbL9rwc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhouyi Zhou , "Paul E. McKenney" , Sasha Levin Subject: [PATCH 5.10 130/306] rcu: Fix macro name CONFIG_TASKS_RCU_TRACE Date: Thu, 16 Sep 2021 17:57:55 +0200 Message-Id: <20210916155758.491314821@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhouyi Zhou [ Upstream commit fed31a4dd3adb5455df7c704de2abb639a1dc1c0 ] 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 Signed-off-by: Paul E. McKenney Signed-off-by: Sasha Levin --- include/linux/rcupdate.h | 2 +- kernel/rcu/tree_plugin.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 0d7013da818c..095b3b39bd03 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -163,7 +163,7 @@ void synchronize_rcu_tasks(void); # define synchronize_rcu_tasks synchronize_rcu # endif -# ifdef CONFIG_TASKS_RCU_TRACE +# ifdef CONFIG_TASKS_TRACE_RCU # define rcu_tasks_trace_qs(t) \ do { \ if (!likely(READ_ONCE((t)->trc_reader_checked)) && \ diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 574aeaac9272..c5091aeaa37b 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -2591,17 +2591,17 @@ static void noinstr rcu_dynticks_task_exit(void) /* Turn on heavyweight RCU tasks trace readers on idle/user entry. */ static void rcu_dynticks_task_trace_enter(void) { -#ifdef CONFIG_TASKS_RCU_TRACE +#ifdef CONFIG_TASKS_TRACE_RCU if (IS_ENABLED(CONFIG_TASKS_TRACE_RCU_READ_MB)) current->trc_reader_special.b.need_mb = true; -#endif /* #ifdef CONFIG_TASKS_RCU_TRACE */ +#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */ } /* Turn off heavyweight RCU tasks trace readers on idle/user exit. */ static void rcu_dynticks_task_trace_exit(void) { -#ifdef CONFIG_TASKS_RCU_TRACE +#ifdef CONFIG_TASKS_TRACE_RCU if (IS_ENABLED(CONFIG_TASKS_TRACE_RCU_READ_MB)) current->trc_reader_special.b.need_mb = false; -#endif /* #ifdef CONFIG_TASKS_RCU_TRACE */ +#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */ } -- 2.30.2