Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp264134lqh; Thu, 28 Mar 2024 00:51:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+JO+aWwu1a0229POz8Kvz4mSMQ6K7Q6an8ryadaDCeon/G/BILkSBT50WifmSaBqHQSL1NW45Y7lPAWRgZQ5KnNVzCIieDFsbSg+onA== X-Google-Smtp-Source: AGHT+IE8EI7cnwwSq7OyDc6IqwzPLOqHpwT/8dHlSnKtNhJdwrws/uXwTVvcK90s5Xrcym0+9HYT X-Received: by 2002:a05:622a:170e:b0:431:3f65:a55b with SMTP id h14-20020a05622a170e00b004313f65a55bmr2386482qtk.0.1711612295846; Thu, 28 Mar 2024 00:51:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711612295; cv=pass; d=google.com; s=arc-20160816; b=zj1f7qyP/uMJl/3OWsDfU/AOYqyxj6Jse860wZHvDiaPVkIhMa44pppsU6QmzDzdAz 6cabziqi1Kr/dg+yPVoV1kdGdFGyq1PaSjqSYGmOpC+xQkr2UB/4YuCsz5HebQ0wH+Fg vCtnQcplBWJX/2HF/eALYgDBTpKHIGYC6Gg3l0XVKLeX3fgLtYF+DlwJ7Q6QaRdP5drF C3M9bQefOMfCF4zSbve1fl0rxh1VsIQ4qEmAdLZeCuu+0Wz7YOy++fuM/sTf2cgCq07R 87zxzU0tJGguYAvfyIXvJ00oa0svTqF6CfrAz7NqE5BbmtburwsbAS4U82M2x7vxzyIB zyQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PDpaTJnygn2mT7ZJwVjsDsx1RmElkSFOnj98O9h9iX0=; fh=5jUooN2mBYojVcy+3LZrGhvkitJZJRJVhukcEvMaBuY=; b=ztxJxYW6AI0jdf3fIhi3+iYZ+OTvEojIX1s7UI5J9SMNI/7MB4F98E76qG8zEDYqTs Fk1yZGL0biUIx23r8juslJNIZSOXATX2MNvIgVmr1fvdhTwDrVQozOEd3O4ZLat06wBE /AVII+SyHKGpPkOMUMem1qX6QBXnlVm/aBRA5inrLGI1r4rBC0T1ubzgk7haqlMCifR4 ZC4waSG2K3VLOq3YAqSVzQz8QMCiO1idJPnYp5O37S8gNeCN/JKtxo/HJhU3joQtRRb6 vjKV7MpxtIoxL+mf7FozqylIz6xSyutoYetD2EiZrTnEkZhdZEAPRtj0c38vMPfMNdsh v7AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jD84ydRz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b16-20020ac85bd0000000b0043131a5e679si837852qtb.145.2024.03.28.00.51.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jD84ydRz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7A0DB1C2B4FC for ; Thu, 28 Mar 2024 07:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5ACD54BCB; Thu, 28 Mar 2024 07:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jD84ydRz" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5691548F6; Thu, 28 Mar 2024 07:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612264; cv=none; b=I0MEAsjXgJkwRd83ZQPfhSg4iEq8OqS/wW9VnInIGBvMzHQPGVgvhBhR00EM0OXMffAPWLsWS8JCJ5KPg2KaMFcUcN3Pw/Zyf/LzI5uvFYCF713oY7yoEV9ad17tO+he/C8/9YnZ3hKfbfj2Bz5jZmQPM8EkfBByDmj05h+u0gA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612264; c=relaxed/simple; bh=uCa14RngRsTw3+urcwtpjUnYiPtvWY8aUi5khb1j6Fs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Y99wfsqryINyEMLMHUrph5MKQlJVrwLuBPoq3LyW43IM9kDHRfkqPU+SaLOFSdJHhWJOHifNNAtohv1wU6GWYGvJBTXnW5flSkNiHdcHOoDtiKGLL7yqYS+kcqcNxLaLkdLyHXJ5PUNWoVvDODGoyOQF71F18qo7+Dl/xywM2Is= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jD84ydRz; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e6b5432439so633741b3a.1; Thu, 28 Mar 2024 00:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711612261; x=1712217061; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PDpaTJnygn2mT7ZJwVjsDsx1RmElkSFOnj98O9h9iX0=; b=jD84ydRzcSzvNlnO5JYGJqkPL1p6ZZbzei0M64btZFyg1Ze5Mee7PO8srA7Tf+UEuE /uP1Ul+BQcmTACVEkyJ6+DjRGkjUBXSLL9cZTA57Uchornrsr5Rxj3N7Mu+2YbnjHU3J +8rLua3n6uBlWijpTfpFqXtm4Kiu/FWH/u7aFLUjQb29y3VXYxSd07ovTsoKh5k8iMY/ KShKDtkpVHci/flcJEdieckqYT2e9cUD6eg1PUXpzR1mhGQIVlbRzqnU6RbGzT5qdZBh XlhOyEDeCQBuW2/3FpvsbDSPOuDBOHZw8Sehd7Ijot5iscNJPxkzsjta5vHwwMahj5KM z2Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711612261; x=1712217061; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PDpaTJnygn2mT7ZJwVjsDsx1RmElkSFOnj98O9h9iX0=; b=vykGMLs9DL7/KxKrw/bdyjdnKyJVD9jWFk71BZgz+bubULfx85zweKWB7FMNNljOXl bsO7OggL70Rz+tiTCbnncPMgk+S6M216KpiODLUAqavXDZneAuy4/gSP18VbIzaLUi89 mxTqq1SZtnZgWZeJTKXU2URP4l6PXPCN5sX2Ovp1yPiuGkTvrNTB8tsz3ckiAD6IlbcJ iAfVt4Eka6LnZY7dlR7ZaFYwg+e5GoSEGSepyeEAEGSD0wEGMdIp+mdqwy23k8YZ9aon 81EUWvMpMUFj4aPGxhn5E8gH8zS7amnVb7gYIeDdk/zyQsWEKy9WzNe9jvK/FMTP+TCW hs9g== X-Gm-Message-State: AOJu0YwmSflwyVGG6zb3xrzkAEdijshfS0zyGtD7476JkOgUmo0JfTSk DHbeqaEmFZ2UiGmOXHPwbinkAEm4yONhBYCXlO1BQduSVqAlaj/g6df1admd X-Received: by 2002:a05:6a21:164e:b0:19f:f059:c190 with SMTP id no14-20020a056a21164e00b0019ff059c190mr2137232pzb.24.1711612261598; Thu, 28 Mar 2024 00:51:01 -0700 (PDT) Received: from localhost ([47.254.32.37]) by smtp.gmail.com with ESMTPSA id kx13-20020a170902f94d00b001dddeb10d83sm855667plb.223.2024.03.28.00.51.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2024 00:51:01 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: rcu@vger.kernel.org, x86@kernel.org, Lai Jiangshan , "Paul E. McKenney" , Peter Zijlstra , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: [PATCH 03/10] rcu: Reorder tree_exp.h after tree_plugin.h Date: Thu, 28 Mar 2024 15:53:11 +0800 Message-Id: <20240328075318.83039-4-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20240328075318.83039-1-jiangshanlai@gmail.com> References: <20240328075318.83039-1-jiangshanlai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Lai Jiangshan Enable tree_exp.h using some rcu_preempt macros introduced in the next patch. The new macros touch core rcu_preempt fields and are better to be implemented in tree_plugin.h. Cc: "Paul E. McKenney" Cc: Peter Zijlstra Cc: Frederic Weisbecker Signed-off-by: Lai Jiangshan --- kernel/rcu/tree.c | 2 +- kernel/rcu/tree_plugin.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index d9642dd06c25..57d1ae26861f 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -5245,6 +5245,6 @@ void __init rcu_init(void) } #include "tree_stall.h" -#include "tree_exp.h" #include "tree_nocb.h" #include "tree_plugin.h" +#include "tree_exp.h" diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index b1264096d03a..d899b4afc21c 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -103,6 +103,7 @@ static void __init rcu_bootup_announce_oddness(void) #ifdef CONFIG_PREEMPT_RCU static void rcu_report_exp_rnp(struct rcu_node *rnp, bool wake); +static bool sync_rcu_exp_done(struct rcu_node *rnp); static void rcu_read_unlock_special(struct task_struct *t); /* -- 2.19.1.6.gb485710b