Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp4409rdb; Mon, 18 Dec 2023 07:28:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFq4607cSFR5lp9/3ZXZzy9nzLXh/u8mdyXXA2XiELW12/NaozMG7X5hOrnVOYBOMD89qOI X-Received: by 2002:a17:906:344f:b0:a23:5753:7ba5 with SMTP id d15-20020a170906344f00b00a2357537ba5mr952163ejb.47.1702913300275; Mon, 18 Dec 2023 07:28:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702913300; cv=none; d=google.com; s=arc-20160816; b=0EndNUkgED4+s7QzTggIB9PmRQVA49olHzHhKj8hYiNn61diGBwRcqJuVqbqhr+1mQ mPqy/vFcaiu1XUkAb+CS4VIIApqpOgxfo0troqG4lZJV2D34cj6kEKmImsP4AJPs9q2H +D8JP8IDxaWjyEJOTS7iHTst9JK1yQWNczTmGCMsa3PkcOgIABs/tTKiDinzbZdt8oQu DV1cGHK4nDQUneAMi+BnrWtlZcm7geUBIV8EdbonfGE25EPDt3ZFjnmKSdPUqFDUNcpd PTYEwsJ7OYAV83nj6wcXHcnTRzQbAJ2YO8yw2YDEXLQl8L4L06ECb/rjhRRbvkrdlU23 lcUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0Cj5RW2vsN4guuPeJ+n8QNc8sNSQ1zIxYgWq4v8uQ1s=; fh=qhhMR+E3TL/auXOP7S02sQ5Yl0P0uH8KKCcixygM1MQ=; b=i6qYmRXAyCslsgg4S5KAGOk0Lrwk24Lc9b+QXF6LW95GrME4SF48H1gqJSmqSumZ1Q Zp9KjRSisQEIzweMWhZKu/eNUyrnFNGLeXYiThc198qNkjMxo/8aFxo/Tpo1o9GR9C7G UMku1HqF+9s0vT2qp3Su0HBVrnAq/sd5iQIr8cE8Ss7RqSMfn7FDyTVhCiB7QQOZwq2E /IKLz5p98h2cNNKctBBFdQoOFzyZm9+zZFZS+060BV/z/DTBpFmT6Z1NR8qPD8PmsU1E OQ3/CKpKZ6CyO4j62w9SUVBFFhZAeoNA5f1NS6iYGl3PEDSJKkXXVKOa5jJbICZvZYOq G9ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=AC0DHSfo; spf=pass (google.com: domain of linux-kernel+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga14-20020a170906b84e00b00a2333379449si1793231ejb.855.2023.12.18.07.28.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 07:28:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=AC0DHSfo; spf=pass (google.com: domain of linux-kernel+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3926-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D9DD61F235B3 for ; Mon, 18 Dec 2023 15:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D581B3A1D4; Mon, 18 Dec 2023 15:28:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="AC0DHSfo" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91D2F3788A for ; Mon, 18 Dec 2023 15:28:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2cc6863d43aso16582811fa.1 for ; Mon, 18 Dec 2023 07:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1702913288; x=1703518088; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0Cj5RW2vsN4guuPeJ+n8QNc8sNSQ1zIxYgWq4v8uQ1s=; b=AC0DHSfokr1qPeKJbQQQVS5FZZ8z3qi6LlYgBYY1b8LQFMCf9sjtundnHO2lE9rN1k msIgrLLSghJSqBhnDK7sON+ZfVXBTgCBs8eq8eM9kIg2BjMiFVc6i9PXJHfhoREt4QOB G1j8dJr9j8jzxoQt1aLCLa/WHbewY/0C/Ow+M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702913288; x=1703518088; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0Cj5RW2vsN4guuPeJ+n8QNc8sNSQ1zIxYgWq4v8uQ1s=; b=V+GH6RUM2qk/9AO+FQjh1uvspIUhJBaedjyTG2X87AXanzRdX/IbWXrGgPsj+Iv7oS jA4Ay4HZcwdm0R/LhhZh6ZNAsFzv4UGeOKaKNF97tD0nN8mMVAVhXdHVPfTTmRCjfz1X LPvAmkKTQjn8sUGSgxageP5lQKT6S4/ZY411pL5wJUHbzOogk8Txq3/mV6AGOaDAYCJK 6MPux1akREijvtTBdr7+/WPlo3A3JHd2G47LQlgpc7PPuDTOPN516AsH1jRgmjuXb3m/ Phf1F6Ji5RZ1xir2UiauCoDF6GdkMEsSMkoO76rw+ttyDvlYBELLGZ7zosooWgF/4QFS DUMw== X-Gm-Message-State: AOJu0YxpFKqxdVKLghP3CnfBuQrkzK4KUs2szhfhQmfmdxCLjHYqj7fe T4emjzovrA4caOoIxCU7MC4n1icAA5DcirGYmYhRpQ== X-Received: by 2002:a2e:818f:0:b0:2cc:5361:ae01 with SMTP id e15-20020a2e818f000000b002cc5361ae01mr1967959ljg.73.1702913288455; Mon, 18 Dec 2023 07:28:08 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231211015717.1067822-1-joel@joelfernandes.org> In-Reply-To: From: Joel Fernandes Date: Mon, 18 Dec 2023 10:27:56 -0500 Message-ID: Subject: Re: [PATCH v2] srcu: Improve comments about acceleration leak To: Frederic Weisbecker Cc: linux-kernel@vger.kernel.org, Lai Jiangshan , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Neeraj Upadhyay , rcu@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 7:13=E2=80=AFAM Frederic Weisbecker wrote: > > Le Sun, Dec 17, 2023 at 09:00:15PM -0500, Joel Fernandes a =C3=A9crit : > > "Acceleration can never fail because the state of gp_seq value used > > for acceleration is <=3D 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 snapsho= t > 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 <=3D 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? - Joel