Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp751102lqe; Sun, 7 Apr 2024 02:04:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1dHi+hPpUkVR9y0jy+QQcNJOV9RhTL44WMCOxgp0DoTTpb3Y15IyUgEi0n9HynBW9jVxX9rJ+wv6rlPf3LcgMWQ56umGGqOR5I3lUow== X-Google-Smtp-Source: AGHT+IHYfgpI9WwmqC6/uN3Mgez6Ctpak1kVsfeZGQRyWmEJjnOayNqq+zo5SitGoPD9X9mk3MNe X-Received: by 2002:a05:620a:204e:b0:78d:61f1:597 with SMTP id d14-20020a05620a204e00b0078d61f10597mr916539qka.49.1712480686385; Sun, 07 Apr 2024 02:04:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712480686; cv=pass; d=google.com; s=arc-20160816; b=sdVMXF881yMReL234HiugPRz8WxdlJKfLf0krnN53C+bYYaZcFLvZShqUxQk9yEtx5 l2BKkPWLC/8tO45qa5ixJisxk7FIbZvmZ1MJ6udLavcp0mPLr5ev3ytKgsUNM4cBRTYt ki1YTGQ4T0xElr4Tw0NHdCLFDvIyoPjQeKYbKkl0X96xCBljCtl/LSmJiZdIIRkOdObs xBgTlX7bj88gpYlGvoG84OFaC2MMk02IFxQeikA0YVamQoHVVQalM0g7F+N902O76jL4 H6ovQgtvr6FRaDhytl7AlMEZwhNNdltglyeDiUTD9ujEj7Rh/SznBkjp2nmn0M4toDq/ LRlA== 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=RryskTliZ3IXjIMEW4QLTJUCIPdL2atrGVjHqL54oO4=; fh=5jUooN2mBYojVcy+3LZrGhvkitJZJRJVhukcEvMaBuY=; b=I2/zwrvJX5NaN9dpeAveGEVMhNDTOJBFmpaGtY/2j45mxd8b1Rv67jH7S45dTudIf7 QMQ631WaMHIDzi2eLpD7M5A4GuygxjakdhIgRe/AScgNPWpRF3/RDt5UXce98kuSeJjd 9yowBPw9G709EEZWKCGjJtrneeFR7yjFZQsfYAWuylXrGbqo11c9qX+cU13Td7lJCVjy hc8AYj/tjVnC8GSOr48nR/iIEnLXoAJQlzxHnKEPdKoTjvXPjExObe/sR+YWq69PUdhk +P9Lwq5yDq6lXZS7M8dKivwcaQWu53UErm/swtsd6qYMeA8jtLBklN1Pv8hogrAEeMTS e8WQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jc79AA6G; 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-134278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134278-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 br44-20020a05620a462c00b0078d648a96c3si166556qkb.434.2024.04.07.02.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 02:04:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134278-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=jc79AA6G; 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-134278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134278-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 084C61C21735 for ; Sun, 7 Apr 2024 09:04:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEB9623768; Sun, 7 Apr 2024 09:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jc79AA6G" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 9D333225D0; Sun, 7 Apr 2024 09:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712480623; cv=none; b=G9UQGj3p5Wyd/nZv4WmSKkc/dmVdO0LWOn6BtEs+IMZQziUeX04t6kU7IoaHTvAFvvlId9mY9a7xnJMRDOJJvMt34awSlcdMtqdy+pQNmFSpdgSMFpUngouvxiqWmkKhoRvUQdvhwGzn/6UwGTd0LlWMOrW+A7FiRY7stAL53Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712480623; c=relaxed/simple; bh=fbc/eh8HxR9mhBJCVcgaSscwMF8MFg41ZBJxKMGrRA0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pzdR/+xpQ2mKeEH6xncu6GyAXENSI/irhtlerkaLnlyx6eBFcKGy7WAdMR88v+fSHyeMMj+Z21Z32FO6mlJta/QnNbDnjZtqM1TTgSNHuA0c6PC+xeEak+y5+YZ9B5nCAHzuXmsUEq/aust9QHxFx4GVT1oYKeDOZsSnucnwhmc= 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=jc79AA6G; arc=none smtp.client-ip=209.85.210.182 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-f182.google.com with SMTP id d2e1a72fcca58-6ed2dc03df6so12903b3a.1; Sun, 07 Apr 2024 02:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712480620; x=1713085420; 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=RryskTliZ3IXjIMEW4QLTJUCIPdL2atrGVjHqL54oO4=; b=jc79AA6Gso7gENaAKp+SmB7dB9pe17z50Cj5CRYFoG/mKJUo4Ij8QG2d94CIN3mFyi c8pxqhlTbjRFmmHPOjdYq4YppZudK91fha8BQyvmcuGC6iLaxtjbPioMvMima8zfkksY kfpBoONJH5h9HAEHqKj98jq/WwR7eyFjf6RyYNJl6ppXXftTj4dbel7/Xlrl6hFOfa0C YRhG4UrPokICxNr3PHvYJz8KIxObn3LKWbVoaOY3qixCQfgs92QifA+2KQGggRW+dTm2 oRpg9Q6AN2tAgxNrX3VQEQVO5RkEGKfkECxgvslkaTxIYXSsP1AUElaz8UOyIaL70ZFm /Bcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712480620; x=1713085420; 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=RryskTliZ3IXjIMEW4QLTJUCIPdL2atrGVjHqL54oO4=; b=BzjIgO9XzKeLHMmfDGz6MQcRU/LDEV0XYMBdXunPRkTZ6/9hjTcFphIyANP4eLi4Ha qwKI3xJVQf90XoXinpUWNXqHFyHqofWpgK+KyDaehlzSLppmmeAXsmFKWedkSPfzMoXl PvlN8dDrCL7s2t7C3R0f7ErgFNaOiScuExw2SeYyxSr6G9nzRqDijOvtUwDH5DFvieYN 0u8MI83mgiS0eXPh2bra+zUaJo5GoCjn2v8VsEEwtGPuuZGLtPJm9oS1HPLDtG9nFJJn 3Qmc+SkqNU76YQrmKTVFRG2nFTdZVkZY0p8Jxq4wv9pP+71LysP9f6iUrAdjlTXOrtdV NZog== X-Gm-Message-State: AOJu0Yy0cVS8+b3S6Mz78Et9LVrlvqNLEEw4E+i7XIiL3VEoBjPweElw 1ba3wlIVjX2d/GhOHfafgh+tRgjR+7U1/l3NfmhmFgx4lrm09J+DYAziIlmc X-Received: by 2002:a05:6a20:394f:b0:1a3:a637:9753 with SMTP id r15-20020a056a20394f00b001a3a6379753mr8330961pzg.12.1712480620477; Sun, 07 Apr 2024 02:03:40 -0700 (PDT) Received: from localhost ([198.11.176.14]) by smtp.gmail.com with ESMTPSA id p37-20020a056a0026e500b006e6813f2301sm2587566pfw.56.2024.04.07.02.03.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Apr 2024 02:03:40 -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 V2 03/11] rcu: Reorder tree_exp.h after tree_plugin.h Date: Sun, 7 Apr 2024 17:05:50 +0800 Message-Id: <20240407090558.3395-4-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20240407090558.3395-1-jiangshanlai@gmail.com> References: <20240407090558.3395-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