Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp410394lqo; Wed, 8 May 2024 03:46:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4JK3MXEKunj4ggSPJetvM4zKW+rWIQNHEDujEZkj+Z99LeeGhUqYGT9dfpQv5qZ/YjfKNFw2guUKUwVslG02p6PzFVfaKbwywpmTPtw== X-Google-Smtp-Source: AGHT+IF1+Zjb/nj3DVmemsNt2StEtrFqNVGeHQ3WtXxImCXvv8QJmo1PoSVVGnZcM9H/2DB8dCkw X-Received: by 2002:a17:902:d4d2:b0:1ea:95f3:b0a5 with SMTP id d9443c01a7336-1eeaf86ee66mr27886645ad.0.1715165216706; Wed, 08 May 2024 03:46:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715165216; cv=pass; d=google.com; s=arc-20160816; b=dFc+Q00P+VEZ4I+qcly0PEase6ICiLBHAhXFrndf12ja/1qMKw0A+cUE6Xaao8CSEG 0WdivqBIun27/SqYvVzUE5KvrCJms3lYVjMqoQSXzlSyYz0+jZxu2bu/2s8XC9e3sh8Y N+T/FxbQ+AsOQhryt2YmNG2CbG9H0fdeDGk7SELSMjdF+gs/F1xnQVlKGBWJuy/I+zjV b12w3cRLvcb3sIGWUgbQpUGIKOCp8J/VZq47Ws8DF6c+bPBK55avzwV/+mo43hI0gGr3 SBCpud39qVWSjzTvXB5PO0/TBF1OYoh0Ffg7EGj2Z625mDFlud3lxr6Z1xlq7e4BnTa/ tGkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bcO+d9ipAkgrWi3MBCkV7D0qdv+9xFJLm9s9CvYdalY=; fh=EXeh0QXD8yIO7zRa1z9rYWjTgJJfRYmA7W9VW6WYneg=; b=d3NlKXAbn1i1rQu9BBD6a6ejPXn+TcHlxbKA5xxDApQ86yHfBQOe/x8k0j2pqokdK6 OTfatnUVM+KRCC2LiBQdo6t3xFnztt365oXcFCVI2SwPDpVcAM5YoQas5HaiqiuxVMHC JOpY4eW1G8Ya5GfaKlnrpvmbW1iLHn+ytLy/vg30WmX3qk3vFwNvo+hYZiyl6rzw/Iyn V9Dozlbd+GqaebKZPhztkl2M4oSZS+jAvqVHQ8t/MX3VBhp1cV0vcRVWmqNWdwwAFNX+ N/64YIr49cH01iTM7fE0lrV26FXZ0Rq1tJ6H9BS5LxarWx0eKZ7fehAi6aDXF8CncvnW azkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jzvgD9XB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p3-20020a170902780300b001dd96e5febesi9657375pll.190.2024.05.08.03.46.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 03:46:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jzvgD9XB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 48DEB282063 for ; Wed, 8 May 2024 10:46:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E4D08173C; Wed, 8 May 2024 10:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jzvgD9XB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98A107B3FD; Wed, 8 May 2024 10:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715165209; cv=none; b=jtq4INf5Y6rTzgllMi0jwlsRzEwoszy3OKa0trKoZc1EOdS2rg5m0HnIE0ePrMelE7dnQCAOaaL31cTxX3q4ydTbFyXJNTCTZXOLUzNCXGqO96B3HQDqpqI8QnzwgE8SEFE5LgSH2oarHwFINNIvmWN5TTmWlIYFZnPoiMVobcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715165209; c=relaxed/simple; bh=Z00YMdAglgEZkAiou630en9bCthfc63+DSDxO/Ruiec=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YrWTIFJsREhRSsDn8w6PHLPmkB4SxuWd1od3Z277Qv/SyhuKJY+RRbGTFO8rVVkrrW4T41YdYt+HIB8ESacevWG7p6EyBA8exPz1Qw/GO0aPWPX4lIWWVT8+FPBGGhoFPKNj4owpRFRWLoPdQHOOgRBqcEHdA6+W93cRN3Z/bUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jzvgD9XB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDA8BC113CC; Wed, 8 May 2024 10:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715165209; bh=Z00YMdAglgEZkAiou630en9bCthfc63+DSDxO/Ruiec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jzvgD9XBXwxg2y4Wq5EK0VwSa9QkJLBEIxZBYBDPJr+ObyM1aZytNk6UpZdJJLPIw OB7t/LNNfskMdmb/hRr7xPC5+AYqp9Km8DTvwixubv0wovCu+rpCKZ7Cx1iYS5tpgp IjqyYsIj0pvZGGTfoTXpuQAHBCVebas45b0a6CneS0UZ7e1PIQzqBwOaC2uED+tSZR ReXK2hirK5Pjr2vwnYUcQ4SxX52kNSVWP9LHRtMHhP02mq+OeJnjTshguLg8Uv4hmr C+HAAGn5GW1IDSLAYP7QAqLUGro91L94GpmWsH/ZGJxckDN7rIglOyTpPo2/nyixxs VGRToiQ53QIJQ== Date: Wed, 8 May 2024 12:46:46 +0200 From: Frederic Weisbecker To: Valentin Schneider Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" , Peter Zijlstra , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH v2 17/27] rcu: Rename rcu_dynticks_in_eqs() into rcu_watching_in_eqs() Message-ID: References: <20240430091740.1826862-1-vschneid@redhat.com> <20240430091740.1826862-18-vschneid@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Le Tue, May 07, 2024 at 05:48:12PM +0200, Valentin Schneider a ?crit : > On 07/05/24 15:32, Frederic Weisbecker wrote: > > Le Tue, Apr 30, 2024 at 11:17:21AM +0200, Valentin Schneider a ?crit : > >> The context_tracking.state RCU_DYNTICKS subvariable has been renamed to > >> RCU_WATCHING, reflect that change in the related helpers. > >> > >> Signed-off-by: Valentin Schneider > >> --- > >> kernel/rcu/tree.c | 8 ++++---- > >> kernel/rcu/tree_exp.h | 2 +- > >> kernel/rcu/tree_stall.h | 2 +- > >> 3 files changed, 6 insertions(+), 6 deletions(-) > >> > >> diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > >> index 857c2565efeac..d772755ccd564 100644 > >> --- a/kernel/rcu/tree.c > >> +++ b/kernel/rcu/tree.c > >> @@ -308,9 +308,9 @@ static int rcu_watching_snap(int cpu) > >> > >> /* > >> * Return true if the snapshot returned from rcu_watching_snap() > >> - * indicates that RCU is in an extended quiescent state. > >> + * indicates that RCU in an extended quiescent state (not watching). > > > > *is in > > > > Oh, thanks! > > >> */ > >> -static bool rcu_dynticks_in_eqs(int snap) > >> +static bool rcu_watching_in_eqs(int snap) > > > > I would be tempted to propose rcu_watching_snap_in_eqs() but the > > purpose is not to dissuade people from intoning RCU code after all. > > > > I've struggled with finding something sensible for the snapshot helpers; I > think I prefer your suggestion, that way we can have a common prefix for > all snapshot-related helpers. Also I keep reading rcu_watching_in_eqs() as > "is RCU watching while being in EQS?" which is nonsense. Works for me! Thanks. > > > Reviewed-by: Frederic Weisbecker >