Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp117489rdh; Mon, 18 Dec 2023 13:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpJhYsejoeWR9gt0e9MhUYjbliyQIY89QeJsPRF8EKs49O2Olcx+6BtWQu8lkpzDm46m/P X-Received: by 2002:a05:6808:219c:b0:3b8:b1bd:b36a with SMTP id be28-20020a056808219c00b003b8b1bdb36amr24210130oib.49.1702934931165; Mon, 18 Dec 2023 13:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702934931; cv=none; d=google.com; s=arc-20160816; b=Wqgik8c2Qxnidsfp5sgHsyk/T2EmiVnjlxSYGZri2xor9y4/uvArSGG6/XQxKgaOti T5pXGz5B4FljoTHqIaXZEZJGKdydpeErjSOwQLbHzapMkLu68TWC7U18zvlWDHzT3WUh a1maSihKTbiFy7nh3GWv0PC+rSTgg6WyjXvVpCdRXY5Z9NeoHVXLWP1ZuATSeRSwE+lL nt7v4eybbmpt0G8U5xQlqZlarfYkEx3c/ANRDZQB3z0nbKMGB9CXHYLq0fWgMwSP8c7R KOcjDoziSLTz3a68GQGNgKo8ca77btXrJC1TOAPOLN9hVoBhOZiaRw3K90e+pSKb5c68 kcIQ== 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=aGr1BC+JUc9j2uaBQn4ubkX+hrO7kQcvivV8RTpK+Jo=; fh=B6ruV+84Wt6DCY/ui3+IBqrdoSU47RBkMWQOYS6+iw4=; b=boiqXtZCOd56suwbcc2pjxWDAc9fhw9lHqzgrHpVfHtgqyBB8AsjOvgoCs7JPzdDNs Qy7wZh/VMMxhSSxDBLy59k3zhavk8x3ZHizrRP4GBhonhOcDCAsiX+daEO7HB6s1q3Ro Sp+RG9dc3+cpLQiOyrtTrmIWl1mxIUQlOuVKQ6B7MfAQnVqUEq/0A9ychMmpNk4+7LRA P/Qk7F7Hbz55ZfvLBf4evh0KVwM20CglcJI8gxZpwnlRxHKgyZhtcMhWDPwdVhIxjwdA IcjDd33KQTIRuHM4wyAKWEEGCuNNDEUoKU1BfFwVHJe5SEP3e1Y8jXXxMAUsStlQMvyl ZkFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IcggSP88; spf=pass (google.com: domain of linux-kernel+bounces-4407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4407-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dt28-20020a05620a479c00b0077efefae26asi25007279qkb.410.2023.12.18.13.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 13:28:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IcggSP88; spf=pass (google.com: domain of linux-kernel+bounces-4407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4407-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DD6801C225C2 for ; Mon, 18 Dec 2023 21:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CCDA740A5; Mon, 18 Dec 2023 21:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IcggSP88" 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 BADE442361; Mon, 18 Dec 2023 21:28:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D25C0C433C7; Mon, 18 Dec 2023 21:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702934924; bh=5X6kIjhcDaJpywrSbw/1s+grFMz5MMTXnJ6HQWnvrTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IcggSP88tbCZDD+aMr7Zlx+CEYBraFkF3bI5JI0sgjmNS5XMQnPjSvbEIsB9bu1KF YFw7Pl9vVH99qGnaHu7dnc0xaeFMAeipALqojwiTzhNK0FyuTJVX6Rce02AaPrLw+0 S1N2dO+oTBCEdfnXN5aF4r7XZHemphinURTC+wG4F2vZSnn4ruPfg72BHPZOzfNfV+ 823kj9SH0BHgPPr9Cm6KFVAZujI215fjLzRqa4ZEpCSBq9xzF0jSSICaJ9VmFuRoQD 6xwaY7csFL7R5MhpuV6pLb8K+dgzgBj5jYJKWP7EBtUuU4ds/n/A8/HxyEKZ6gAnNR Zk4NZu3B7jzKA== Date: Mon, 18 Dec 2023 22:28:40 +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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Le Mon, Dec 18, 2023 at 10:27:56AM -0500, Joel Fernandes a écrit : > On Mon, Dec 18, 2023 at 7:13 AM Frederic Weisbecker wrote: > > > > 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." > > Yeah "base current gp_seq" though probably equally confusing sounds a > bit better, so I'll just use that instead of "state of gp_seq". > > With that can I add your Review tag? Sure, sounds good! Thanks. > > - Joel >