Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp534162lqh; Tue, 7 May 2024 06:55:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOmrqeLo7xzEZPiLvgRGiPSSNyIDbp7i/5DE2SVcKovN1jnbUvpnTzW8a8Upru2MZxheTAIIP6JD7Z8FI0tv5fRtU3SDL1FGDYz1G0sg== X-Google-Smtp-Source: AGHT+IGqsGEvQGnKvF4yB54Dc5d7fucRZIZF1untJb1kux2WpxTZcGBnwWW1JhJ0bxxdvo8+GBQZ X-Received: by 2002:a17:90a:d38f:b0:2b1:cf6a:848 with SMTP id 98e67ed59e1d1-2b5bbc387ccmr4093068a91.7.1715090128236; Tue, 07 May 2024 06:55:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715090128; cv=pass; d=google.com; s=arc-20160816; b=kTWgK9ZVuxFZPa+GIqyY4PqW5fNgYf8XUBtr/pjSbe9K9D6zKvEChS2IE5tjn4arb+ dkuEX70tbf6Nqclraf7c4u7oWUpzH57Nl50wDhUxnidyEWvALgxbJIQNSS7IviCeN5K/ YBig5zKHMXEghvOxrnKXKtn+6Kr7+nJZ3YPA4+sTQ6Om/qwKtj9+7ci2kzcVCvSjE8i7 W49jZWjmzHOOIv2pqTnDpGQHevu2Nj+h3Sh1vCkxDIkRTmskNs1nmYT2j6qLfJbzl4bu ko7bTUW5g9SusiEvr493lc0FaU7R1bmb4iBezKmT3RcfNY0375/ni9Qgdt5IFP6L/9Z3 RDWQ== 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=fQsTUVeg+Y9bmiTr83wPQvMfGrPnd8GLwnLcOBEk/GY=; fh=EXeh0QXD8yIO7zRa1z9rYWjTgJJfRYmA7W9VW6WYneg=; b=KNUpc6hvDHgkUe7w5xsL0brPT33D1tvJH8Ma0e/QNYyL5DqcnqpYywN5VIeetwgegD jOVTaeXz4ydsevOtRAu/hqAXYEvTeFo8F/m9vVu0BnXpTA8GxxmpmWvyeGw3eD/l/L6f 7FFtSQHJWMHuOXSyL2Px95fxBv7lyVOFx2OZC34BWGXqZb/5klLL33f+GM8UsJy+5/EU 3VGe3vqqQCKsLdFE0fqwdATeGiq4VPTBTVR2TT/5/Pf//vEJ3SwIPV11Ua+k42C/o6Hj /sUmZIe6I43H0Z0HN0MtTL24JtkOdtvlNV0E1leDamX+DmrWvQPHI5odLmRRoBxwVoxR TNLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uAjqF1d9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171460-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 e10-20020a17090a9a8a00b002b25090e0c1si12609781pjp.83.2024.05.07.06.55.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171460-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=uAjqF1d9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171460-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 AAEF528975E for ; Tue, 7 May 2024 13:48:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E0C215E1E6; Tue, 7 May 2024 13:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uAjqF1d9" 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 45D0213C3FA; Tue, 7 May 2024 13:48:20 +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=1715089701; cv=none; b=PHK54a8vTKe4rGCV6IwDAmeXb6OyXtgg+1vjQGVQN0dUIn1tyV/YQSJ5pEtP+IFNHtXyJF+ATmgFW+A1Kmwx9TGElvywGFW6UsWC7HETVFnlxvlPhW3je0rJ5htSpB6suxhXfNOoPvmD37ty4awlCIHXApCvrJVtUnRdhvGWfAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715089701; c=relaxed/simple; bh=+JnVkJ/DcmtF++oBXep2XfQOhJAgJTlRFNVTNBDM/Es=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IUadxnJ638Mm+kIcM49Z8G1FYkCXb9YtBRp7Q7lRSfaFZyjhkHpGhHMno7dd2DgUvn+PB4APva/A+/j+1HDy19A1pdu7psY4buzHSRRKynzb0VDGCpvtAl3DV026gDa9q3FG/n84TACOG/TpOvSA0y9aR+h/sO29r1fvMHnZ1bI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uAjqF1d9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75EC5C2BBFC; Tue, 7 May 2024 13:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715089700; bh=+JnVkJ/DcmtF++oBXep2XfQOhJAgJTlRFNVTNBDM/Es=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uAjqF1d9EG9EYBgOPPCxw2xFDVNjHOr1ObHDHvILc1AkJJVvpNT7pwmazxkUmtlzR CpXw2Bekil7em9ppS4Od7qTonPrs0GQtxAzzM/rcvi5XpX6lb+r5jyA1UikMHbJBOU LaKbBArTAOtVAofLOVh0q2nFGOmsdk7eRPPSRSkVU2exICz5La/12Ye4328Ew2zIbB DzW5hlfPeapryWv2dkWxF/KHQhpoLsuym8OOgCaeNRABA7O1sVOm0eTuCzGIORLMda RbLiqAq62gtb6tU8GNk+7qWFieSm98tGBtK8gbMYT/wX5q/s5c2Yux7Zut7cI5iyag uDUdeVahFkNrg== Date: Tue, 7 May 2024 15:48:18 +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 18/27] rcu: Rename rcu_dynticks_in_eqs_since() into rcu_watching_changed_since() Message-ID: References: <20240430091740.1826862-1-vschneid@redhat.com> <20240430091740.1826862-19-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: <20240430091740.1826862-19-vschneid@redhat.com> Le Tue, Apr 30, 2024 at 11:17:22AM +0200, Valentin Schneider a ?crit : > The context_tracking.state RCU_DYNTICKS subvariable has been renamed to > RCU_WATCHING, the dynticks prefix can go. > > Furthermore, the "in_eqs_since" part confuses me, as IIUC this only checks > for a change in watching/eqs state, not that RCU transitionned *into* a > EQS after the snapshot was taken. > > e.g. if > snap = 0b1000 (EQS) > and the following rcu_watching_snap(CPU) is: > 0b1100 (watching) > then > rcu_watching_in_eqs_since(rdp, snap) -> true > > but because RCU was already in EQS at the time of the > snap - it hasn't entered EQS "since" the snap was taken. > > Update the name to reflect that we're only looking at watching/EQS > transitions, not specifically transitions into EQS. Indeed in practice the function only checks a change. But semantically it really checks a trip to eqs because this function is only ever called after a failing call to rcu_dynticks_in_eqs(). So not sure about that one rename. Paul?