Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4264007ivc; Tue, 3 Nov 2020 07:20:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW6PmV9eRyE/C18YmJ7nF5ayAZhz9gIQ21/tn5Y+HhzQwt83glrhWJ2q1Y09yl/kz6fxHG X-Received: by 2002:a17:906:814:: with SMTP id e20mr7441732ejd.514.1604416814096; Tue, 03 Nov 2020 07:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604416814; cv=none; d=google.com; s=arc-20160816; b=GEmMvUG/BYqlQfeJBVT7CIzBN0X7F3FhpLmsrh4NlikMbnQscEmcl7Pgdcrf3GxHFe ocNan/AydG/+9p5fTBZoMmYkO+FAboBknOutX6P67Wn5r9naC15iWCRmy64nnse3C7yH D0oUyi4FBYVzEH9IU4zj4gc8vsumWCof1xIlibkJFK2wHEmsJor8Q++CQrxPnye3baUZ 3LW9AB5y7lBwa04gasJiJdQx+WkSw+A7VUZPTqO1BjaG/+DO+6I77CF2ZJRoXxBYgOh7 oLb86fibF3WV7NYdR1FkBcuZGH7KwMHUksFNOTlfJ6nzSPE8/XQ8hvJEQtmxZAIP6r61 3TFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+JBFF+ZCvtqgjAL0bvXnPr+vs1x16+9fP1ZBcDLD3qw=; b=B/GnutAmEGjWkti/EqDYJx8hhcAMNmll7ZiaEGkIYR2luSsaBRpTNeB/pSHfWNE/RS Sa7k0UMwJGhNtJ3tl+u7ZJhfVFQ0cPtJkfzvx2kpTeDkBDy5kPhw87rG3Fp2jNO+/dXo tuZxoMC/CmSNgLmz2X754jNCgS4ACy+kcmDch5Bxw4QXqN56HMCk/06nGfVMBJVmKrG6 ExnbdrK6CmISocAiQdng/x4X6S9QyOpLBwuVpNsBoBhUS9u0NGXCyHL4wjsMVptXibH8 9tafKc7DTBWoid4HvJfG03iHKHIGuRmhnuNsdSbScWPZB24jdq1e4ht5icIxgv7XRBt3 axeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SQ72rCSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si15161819ejc.286.2020.11.03.07.19.51; Tue, 03 Nov 2020 07:20:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SQ72rCSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728535AbgKCPSH (ORCPT + 99 others); Tue, 3 Nov 2020 10:18:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728536AbgKCPSE (ORCPT ); Tue, 3 Nov 2020 10:18:04 -0500 Received: from paulmck-ThinkPad-P72.home (50-39-104-11.bvtn.or.frontiernet.net [50.39.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6984B20735; Tue, 3 Nov 2020 15:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604416683; bh=4+NbJFTPXLn00+roYDaxMSNvwFacHhij1ifzJGHsc3o=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=SQ72rCSPvOXUAG5ariXK8uIOIBT+2ArBQUJXOx+T9HnU3aJHkcCPCCVR60Uv+gVNI 7sQX5qrLt0zytvelBdTL1DtrCqGI45CqXSe5IIff6JaboF3MNqOZZ6QphGkR5WYEZ/ ZF1zv9QVPZGKIIgAU4v3fLWiB38KBZpMAj1VEb98= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 1A3D835225E2; Tue, 3 Nov 2020 07:18:03 -0800 (PST) Date: Tue, 3 Nov 2020 07:18:03 -0800 From: "Paul E. McKenney" To: Joel Fernandes Cc: Frederic Weisbecker , linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , Marco Elver , Mathieu Desnoyers , rcu@vger.kernel.org, Steven Rostedt , "Uladzislau Rezki (Sony)" , fweisbec@gmail.com, neeraj.iitr10@gmail.com Subject: Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment Message-ID: <20201103151803.GB3249@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20201103142603.1302207-1-joel@joelfernandes.org> <20201103142603.1302207-4-joel@joelfernandes.org> <20201103144714.GA432431@lothringen> <20201103150738.GB1304393@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201103150738.GB1304393@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 10:07:38AM -0500, Joel Fernandes wrote: > On Tue, Nov 03, 2020 at 03:47:14PM +0100, Frederic Weisbecker wrote: > > On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > > > With earlier patches, the negative counting of the unsegmented list > > > cannot be used to adjust the segmented one. To fix this, sample the > > > unsegmented length in advance, and use it after CB execution to adjust > > > the segmented list's length. > > > > > > Reviewed-by: Frederic Weisbecker > > > Suggested-by: Frederic Weisbecker > > > Signed-off-by: Joel Fernandes (Google) > > > > This breaks bisection, you need to either fix up the previous patch > > by adding this diff inside or better yet: expand what you did > > in "rcu/tree: Make rcu_do_batch count how many callbacks were executed" > > to also handle srcu before introducing the segcb count. > > Since doing the latter is a lot more tedious and I want to get reviewing > other's RCU patches today :) , I just squashed the suggestion into the > counters patch to fix bissection: > https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?h=rcu/segcb-counts&id=595e3a65eeef109cb8fcbfcc114fd3ea2064b873 > > Hope that's Ok. Also, so that I don't have to resend everything, here is the > final branch if Paul wants to take it: > git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git (branch rcu/segcb-counts) Either way, it sounds like it is time for me to review this series. Thank you both very much!!! Thaxn, Paul