From mboxrd@z Thu Jan 1 00:00:00 1970 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) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bYx0UbpZ" 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.