Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp561175pxb; Tue, 3 Nov 2020 06:51:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUFMnKepOFhWs/gP7DCu2fispGusyOUTmgm7LeD4OGMdR4BT1yV36+IPZF86TMwKRlyBCp X-Received: by 2002:a17:906:3294:: with SMTP id 20mr20170949ejw.322.1604415071113; Tue, 03 Nov 2020 06:51:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604415071; cv=none; d=google.com; s=arc-20160816; b=UurNZBg8PftebN6uC0EmaN+KQ05mhjzy59o1rOEBJel3NroHTgrscFlA0e9oU/E1uB kjf9hIBOp8JlInZTMM8fvct7muqo31SH2TTQ2F5U6sG6jJ1Tcch2X2Ast3jpEJPqDfuo 5fBn2z32iGKlHzt5ZympqEZwMJMyuDr+5mvtvsLTSpv4IA9Rk02oSIIEo7gJNU3sxSFW w2o4Hu1o9+I6+PDxsaiRSmfyIPyPqybxU6xbrgZFuU5i7Pfl91l6GMB+ZMK2N+aS3XeR AXMq7Isz+/SgdyHNiEOmws7ijefYsk+mHjqihi+MiR07nt+ZpEXZ2StVZb4Z2yb+hZTz kMWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ddy51MGFgHNr8jqSZp3m2NemCWbTqAnWYKojXG3IjJU=; b=dzYehuTTo/Z0eSFe2Mh+zUis5QBtupEKRPaj5ghYuWHsHgwZcAaoWFEid3hlBWmoyW 1Vbt/v6yqwJzjomkNsVtNBSwBJ1z2xIFM6y9F9FoOcLy/2j4lSkc2CfOoTqXbILnJ4R3 XslY670s73atCPOSg06flOdGBwUh5rg2BGwY16HVkGW8I64Vw2o2WsFcTtNBpZzipHxR 20VCjLuwUWmrzjn072wKWyvgtfbZHAmGRhhJUw74jz1N8ZXN32wd9wvUGsJr+tN3ehs/ pjNfeSaZNwivctRn5BqqKMCQ3DnFkJ0BOfG0Dh4QADZljdg+PRpBB+j4F4diNWQI/x88 VuCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="BsL9/V26"; 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 b7si2719563edz.277.2020.11.03.06.50.47; Tue, 03 Nov 2020 06:51:11 -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="BsL9/V26"; 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 S1728198AbgKCOrX (ORCPT + 99 others); Tue, 3 Nov 2020 09:47:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:50014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727553AbgKCOrS (ORCPT ); Tue, 3 Nov 2020 09:47:18 -0500 Received: from localhost (unknown [176.167.46.253]) (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 E79F922370; Tue, 3 Nov 2020 14:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604414837; bh=62SPvuFatUemwtljHtmpCrMGumTbi+10rgi7iVjyUEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BsL9/V26ECzEN+QHQ7nXC2aCU4nLrGVjUSriAuEIpCGz+QK+kGaRXlGpIF0zsP0V0 +9jBxbqGXcN4ufAJ4CzCCI/QnsCRnNxl2oxGCxQtGewFIWDvjLdy1THto1ZqxmXJv3 5Rx0f6UdDJCm/ZPZ/a5Yvm4Ol8LQJcIhP7334tEk= Date: Tue, 3 Nov 2020 15:47:14 +0100 From: Frederic Weisbecker To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , Marco Elver , Mathieu Desnoyers , "Paul E. McKenney" , 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: <20201103144714.GA432431@lothringen> References: <20201103142603.1302207-1-joel@joelfernandes.org> <20201103142603.1302207-4-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201103142603.1302207-4-joel@joelfernandes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks.