Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp52232rdh; Mon, 18 Dec 2023 04:15:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHljh9HNjfi1qplc814QU1AuRwhvf/c7PklZYn+0Byhp10K4cqaaV34uTg5QMM48aWAmtGE X-Received: by 2002:a17:902:b486:b0:1d0:a36c:3e2e with SMTP id y6-20020a170902b48600b001d0a36c3e2emr6651801plr.61.1702901752202; Mon, 18 Dec 2023 04:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702901752; cv=none; d=google.com; s=arc-20160816; b=eUOtMaHCbAIL9GDezuLWquQMr1c5OhT5cW0O1FLB+fXx4REBDdnj+Z3qxAWEhkhVWN +rItU1swnl6jeg3cD6K1Ph3sVxjhemsdMAla9E+EUvruEVBnZ3X3C91GU4iCDhNvxyqe Ku/7fvjjDAhq7lDIPNbvLNQP18bFB/Z+x6E4NH/X3ukv9546QfszkLTITxxjuAbXRJvl irbLhUuhy5dmjtSkH4s0FhcDTha/SlLfUnFLhN3556RUGshMAr6XhYuyAajI6DvSy6Xo CsPh6QqQ4m0/tO5Qnnunm8hrfJ3BFZLOs3z8m/ZzYt5k5DLJkL/pp1mSz2OecsL1/qhr mlog== ARC-Message-Signature: i=1; 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=Z1RI+qiAoYPvaZCGOFFyrI5zUBj3K27bgZhVIENsg3k=; fh=B6ruV+84Wt6DCY/ui3+IBqrdoSU47RBkMWQOYS6+iw4=; b=BMegzY64kTWWvAAs7+B98O89qm6yhXkiPj2wyIT38pojtQhFnfDUpiIMDICCwu6e+5 U3Yd5i9X4smjKATUYSoYQlPTMSrLrEp11SL5KA6wXeSt3vTznAyLLD0pjhFN1o0dqUeU 14VTwI0SohCtzxYAh+ymJXl7qlhDSn1lFfWUlOYeTbtkIbTolkPn5uScx1gfhtOeD6Ac 75BEMwyQ1kgc3Vdzqsb3iPQhNIOaMKwrOtdKKEfbSPuhETsEhFzWXTDQgSRjkElK5q1j 95A04bhmcHrjfs6b/15LaGk9u4G0xXk8ck2B0iJ/afo6VgD0l2rt9nnc3uels7oJnD+0 wxSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYx0UbpZ; spf=pass (google.com: domain of linux-kernel+bounces-3552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3552-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b3-20020a170902b60300b001d372875c31si6993138pls.41.2023.12.18.04.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 04:15:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYx0UbpZ; spf=pass (google.com: domain of linux-kernel+bounces-3552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3552-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 C145E284C97 for ; Mon, 18 Dec 2023 12:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07DF74E61F; Mon, 18 Dec 2023 12:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bYx0UbpZ" X-Original-To: linux-kernel@vger.kernel.org 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 DF0554CB55; Mon, 18 Dec 2023 12:13:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E31B4C433C7; Mon, 18 Dec 2023 12:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702901614; bh=oaXgI7dJkeiZfCTEDfLM6KyDpHdVpvV5X2NG0vSmxzU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bYx0UbpZ1dmkadeAse1gwsLTMEfb6tPdbqU7QkLpHwCQOCRal5ZRHbqut8jKlZ8vv TrnbsG/FkdTdqfOcyCwDV4bryAySzjNTT06O+YbaU6kLuQWkRt6bQxvKsk/v8aZtlq gs3bczcofn0YzORUB5JgNqFy71iu54qfhEIKPRcNF7HfEdLscpG23JJyEALVgjC/Ka BQj29bO9rbcUdsidj0yXq0FzHB+UOo3BdTfDMQL1f2zioMh92+dyBjZLzkIsaUw/NH XiJZRQUhMT8CQHUx7ghOY2wzUYWjQL3i1wRUovSFwcZRu9lZmx23MhDlIg9X9OyJIr XM9GOtBZGN4QQ== Date: Mon, 18 Dec 2023 13:13:30 +0100 From: Frederic Weisbecker To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Lai Jiangshan , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Neeraj Upadhyay , rcu@vger.kernel.org Subject: Re: [PATCH v2] srcu: Improve comments about acceleration leak Message-ID: References: <20231211015717.1067822-1-joel@joelfernandes.org> 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 Sun, Dec 17, 2023 at 09:00:15PM -0500, Joel Fernandes a ?crit : > "Acceleration can never fail because the state of gp_seq value used > for acceleration is <= the state of gp_seq used for advancing." > > Does that sound correct now? That can be confusing since acceleration relies on rcu_seq_snap() while advance relies on rcu_seq_current(). And rcu_seq_snap() returns a snapshot that may be above the subsequent rcu_seq_current() return value. So it should rather be something like: "The base current gp_seq value used to produce the snapshot has to be <= the gp_seq used for advancing." Thanks.