Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4265638ivc; Tue, 3 Nov 2020 07:22:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM7aRFXHT0zq7e9EFFiYjFqzuXmsAuJMTcBq166vsAhghrZlGGCLZ/LxoerxlLwBhhPgpd X-Received: by 2002:a50:f316:: with SMTP id p22mr22690041edm.201.1604416953352; Tue, 03 Nov 2020 07:22:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604416953; cv=none; d=google.com; s=arc-20160816; b=XKonHTvf5MSUCD2D/+O7xzgr3BIJTgBvHUh+zb7PZYuZ8LtqNRAVx5DhQRpQM4Glyn D8PfjmHgCXZYnr/ZCoUgBvPmfpMFBnypAoV/fO4hkCnsBvbcgneK27y4VDCIH+mjNA5e aDA8oqlvMhf4SRHaFcNrB3s6hqIHlghYPfZv/PUjYqmHVa2imJrxEYNrphSCZYIHQSgQ 34Ymuq1Bf209RWC7VIybBsanSMMUSqbL4a5KCdr+ppxip0bwM3TPLRODi+16lsjScDZR xpAU2TbsJyrI7/SEU2Szfbtg7kbSTIv6px2e7fkCFlrqv0Ob8nrSvRPJ6jEa13QbDsH1 Rqfg== 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=j70LnXHzSQ/uJ0bQaz/oXJGf0qaqSGEqrdrBVa2SUrg=; b=ouI7WN7mb3P9MJXYf27jl4P4ztlZObmyrTFCbXlI1KJ93NaEyjEDPcM58qEs0+ciNz a9KROnmeEhgNPb2i2+e9nzIRv8H+vxp8xvPCeCljUXd8xC6KbQZ6OHyQNnKaReb+ezsS nqaQOvP2MTaXwAWGg2ZrY0QMlSq73F1EQhQbNgQd7BNGfynE5zI5V90K1dkSElNm9MiS cU9aFXV03GGwbdx4LuLAR0W8VLIa7leT0kpmBpqWXW2VQTQY+oi0K6j9wkloEttEiri1 2p4XFZC6j7KcJW8pc/WMm/m1vAA5XptLuRqo2jsFkq6DFLvCwit7y7vy44aa4IUkLKoV 1Gzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yOLsS+7f; 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 p19si12967472edu.169.2020.11.03.07.22.10; Tue, 03 Nov 2020 07:22:33 -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=yOLsS+7f; 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 S1727910AbgKCPUl (ORCPT + 99 others); Tue, 3 Nov 2020 10:20:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:59846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728342AbgKCPTW (ORCPT ); Tue, 3 Nov 2020 10:19:22 -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 9796020735; Tue, 3 Nov 2020 15:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604416762; bh=MAxC15ZBCRgqAWQmINA1Xb3bGR5aaGk0zcw3qLyvCyM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yOLsS+7fAQkJSXmbS7ZLD8H8h8Er4z2R/TxhVwnkLZI8Iy59MwEPDHTQC8CLjIMP/ leUnnKZa5EZDQM+TPYIJ+eBjSt3fppaEvWAQYnJp7kysjwkFG6ulsbBhcEU5dHL+5A VW5E1kir+ssKEdfNAMpaSjfQBGw0DP73EGWMv80k= Date: Tue, 3 Nov 2020 16:19:19 +0100 From: Frederic Weisbecker To: Joel Fernandes 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: <20201103151919.GC432431@lothringen> 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> 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. Works for me. Thanks!