Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp42245lql; Tue, 7 May 2024 09:15:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8vI8mRheFaDTk0SBnciGi4gD/Crpiq/4QZaUWUICktOtb7jH63M+2YAS18sVYaOsICtzWjcgMV+iBJnWJW67lFRPbaj9inoaBSP4pvQ== X-Google-Smtp-Source: AGHT+IFhPdTx+E5sXMvMAFjfdxQqDdNIY4MOG6NkOepnMrpBgbksHzqfATixXDhwwCPKdB3jXt9f X-Received: by 2002:a17:90a:f014:b0:2a6:f414:4e0b with SMTP id 98e67ed59e1d1-2b616be5234mr10974a91.41.1715098549574; Tue, 07 May 2024 09:15:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715098549; cv=pass; d=google.com; s=arc-20160816; b=my4AzQ09lbyQzC1fzkcpwHW6LHMrW1ASBCC8KJnExi0WQzqnEQ0sl4QY2ZtmojNKOZ 3weWSBoRiL4tQz0YqphgBK2EX+oN5KjPo/egCHXn82p6ZAIhRCl3a/rK/DwBdEr8ZB7s LuqYKk/Uc1v97wgBxzA/rkbCuP9QBCnAkGqrkyyZ4TfOTqzZEK0UjJOlz34of3i//w6v HHSNafjvV267ZK0I+K0f0dcCRxs9rKsCG1P5/0pTVaKA+aDsSRKG0Pgy7OrU5ZAu3mXG bCm7vod1f8oy/uKAUO7aVXJWoUrSkUTACmwQr12FqROitMI1o/MnrBe1w5dtbuvMBpzT Bf8g== 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:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=gUzbS9jvqHEpZZhO44tGoG58QukIdXWBZebz/HINvlI=; fh=3WXrfPM6o0mu3Czlg0PMFm+bDhAz79Z6ykUKeKrrfog=; b=JpS1ORknMI+dikIbjxapgwHMzIbtnjUTyNVIbm3Mgy5doUXW/yoUa4xh0UkVos3qd7 5dX4gj+kGNIdWw0z4ZlhsOQmovPvDESP78ZeG7/FsAlX/BxlMTR42RRIx44wXgNtwYFa fmu+Pp+qytVXFpc7xgG3E789cHlH6PQyoAgmgrWmAUdafxYQEzrfhRsKipJ54YlXv4es Skfo3QmpcdPJVUJt3aVe7r4F4JsKmLfsssuHNJUHdBWr8W0RQaHK12qgHmFUSKa7mG3r GYqieVprCfUVaWyVpPReJJZmr5INzcRPjm/K40qT5ZXcL3zEeFiAboHpP/FaRqP360/9 n34A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hYdhTx2V; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-171721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l18-20020a17090ac59200b002b16686dd7esi12708862pjt.51.2024.05.07.09.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hYdhTx2V; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-171721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D2FA4B2547D for ; Tue, 7 May 2024 15:48:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B32F315F30F; Tue, 7 May 2024 15:48:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hYdhTx2V" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 84988200D2 for ; Tue, 7 May 2024 15:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715096898; cv=none; b=LydnvdF3NaVslVFd1MIpTVoQIDQ6jCyo9khZ5cyfAFS4GbAJ9xSEB46dNa91f17iOoSoUKc07tPeSfSJzqvOWXkuMtT3jHjGT9xyNxOLURYu1Wupo9gi3fd+f2+ZhpMLPZ+MDoJ/hwZ7N0a6oXUOpT9nW1YHvlEnp1v2ho1Y3DA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715096898; c=relaxed/simple; bh=oOOu1XAuP25uHdnqlJpmq5lHywIVMEijNpL5Bb4elI4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pqNSvV9CBiHHYrCoI3jOztx8gUqRcjHJ2yCJFt+K0YZjT2WiFEgAJrTkVYIss9Qsv3TcTKno7ZCGp0ZCNwsoaOTrnvUeevoDl3uCFwXQkPFxaUHzpu8MbKQTAYN3PKOrUqjmk6MhJM6Ukx9/U477zEjaw+vc2D5vIgGlk9s1Nrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hYdhTx2V; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715096896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gUzbS9jvqHEpZZhO44tGoG58QukIdXWBZebz/HINvlI=; b=hYdhTx2V1X6/WqTOpGF67L1iRzJh2JTWRV1LnYbwYVwwVX90uGXOJN9vBHqvWDjfqk+FG7 FXGGzG9F1sGjdRNtMYjCtrlQxiqsWKIxMCI2NEYIt15/UNBLL1q+l7g7Quo4iV5OdufmtQ HBRODBt30xNFLKa5wKkFDuZpNScY3YI= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-3-LBIypbcAM6GK18CQKO8GWQ-1; Tue, 07 May 2024 11:48:15 -0400 X-MC-Unique: LBIypbcAM6GK18CQKO8GWQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-34f7618a1f2so762255f8f.1 for ; Tue, 07 May 2024 08:48:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715096894; x=1715701694; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gUzbS9jvqHEpZZhO44tGoG58QukIdXWBZebz/HINvlI=; b=D/WkTDUp6A1zzDNJl0FGL8XryrfaHS9HRIb7PqtJvn+vwp6thdYCq+DZrTIXGY1uL9 Dh0/axH5LXYsjw2Md0DH/RLQstRyWwSbWDZUHdgolfz5hlYrtXBtmM0nl8mcmFGfw6Ky 5hCpGvY7X1KD5NrknGtz6w4UFCvAKdNVg4IxXmRj5qeobYXS09m9ir5kBIpIC67uPktk eQXjF+zevPWXMRI4/nJMilNrg5WGkcJ5B5urXcxfmyz9GkxXTt3RDgRgDkuK13SC1MMH Pd2+lMtt3Ok8szIe18pZnJccmgqnzSkPkhWDViVrCJZ6aZ8VdbfgOfBgp5KQ7n1LWakz mdJw== X-Forwarded-Encrypted: i=1; AJvYcCVy2jjn/szYabRLFLtr/npUQ7WQEjhyf89igBCse3/nKe9zH6aj0lJgvzEiVaHlx6cL2Y2zkrx/btVwaxdexePiJvZ/W+RS83u2vzZn X-Gm-Message-State: AOJu0Yyzs+zfUSwRjN0aQnOd6rp2f02/r5cuL3E/z+EoLbh8OXeDBRFc G3jRgBtId/UaqjnCSiovgeh68mYZVwm7+T1Lv3BpxTr7A9KgRvP8WUP4UEaIKsu4Wv0RnUkXvyd AK+qFxPFbd+2V4tPxWVFRX8NeIfhi9xXG1Wni5gcXDBpiNpkB4Bd9yfLf6D6Z0w== X-Received: by 2002:a5d:4145:0:b0:34d:ce05:29ef with SMTP id ffacd0b85a97d-34f81a551bamr2673959f8f.17.1715096894246; Tue, 07 May 2024 08:48:14 -0700 (PDT) X-Received: by 2002:a5d:4145:0:b0:34d:ce05:29ef with SMTP id ffacd0b85a97d-34f81a551bamr2673925f8f.17.1715096893855; Tue, 07 May 2024 08:48:13 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id y17-20020a5d4ad1000000b0034cfa17d74dsm13166305wrs.104.2024.05.07.08.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:48:13 -0700 (PDT) From: Valentin Schneider To: Frederic Weisbecker 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() In-Reply-To: References: <20240430091740.1826862-1-vschneid@redhat.com> <20240430091740.1826862-18-vschneid@redhat.com> Date: Tue, 07 May 2024 17:48:12 +0200 Message-ID: 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=utf-8 Content-Transfer-Encoding: quoted-printable On 07/05/24 15:32, Frederic Weisbecker wrote: > Le Tue, Apr 30, 2024 at 11:17:21AM +0200, Valentin Schneider a =C3=A9crit= : >> 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. > Reviewed-by: Frederic Weisbecker