Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4256191ivc; Tue, 3 Nov 2020 07:09:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw1329Ote/nGoSLhuRfWeZAoO5LAn4v2Vl7jZfrezweWZABAsBUwnyoU+i37IMQkGOTEFK X-Received: by 2002:a50:e686:: with SMTP id z6mr14348158edm.188.1604416180220; Tue, 03 Nov 2020 07:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604416180; cv=none; d=google.com; s=arc-20160816; b=rbbcJMWml6jjJ2QWfkjeolpV886P9HPErHeVDSw1p6WV+6a4C0XJbPsL8wn4rdrGUb RuQ/xF96Ri7WLEKemU7FLnWbp2xty1jH731wMWPs5JgxS3ucwCOXsFZMPTuSHXmHYlOg Yf3vSy9DfRYmJucPQ9PaYBiUk9EuZMbTqBB2QPlp36VXVi4E6imgrar7HEQm0eCFM7SC nNhthYZ2jcvQpL2OhLITySppah/r+eYdYWlt3Tgw0t4tuCvLkwPR/4unMC17yPP9VDFQ Vm/7tI8qCgnCFJ/kzS5Ot9tdyKYeuNjsXzgLQ8xv+IxbblVTjARgq9iFYKt85aDY3loe XyDw== 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=4n4eKbeBF029LZEVM8Tx6GsjHib9jcrVPlcNT/Y/Yx0=; b=lC9blT7Zhqqwz55nQ/XpK2FEFDwPy2yvpi9H7s8Oaeotqgs1TKbytihDpUJxI0o/Nh HfTfzmpRFUc17nn2PXX5vTuwzMykbTk+JmvODR2wkR96f5TXIT2kgg8W+iSImxyr04OY rc2BROj9YLUK76a83nRoHxAMmmLe2sTFU6xr/2yrXIqYC6wTH3dARw1VK9Yq7HARmmXl RGYncANT6pr5ZmrJ0suMw7RGHRq4tFNxCFG+f4GkwcgxEoKfHQSF9mpM5WDMuOOVeD5T iLI+Lk280sBGkZU/zipTmK+OxcO/88Qa53dpMq+kU4E5OasN6SMat7QrWt/gwHS6slQH NOfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=NSZmoJN8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si12331083eja.252.2020.11.03.07.09.15; Tue, 03 Nov 2020 07:09:40 -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=@joelfernandes.org header.s=google header.b=NSZmoJN8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727986AbgKCPHp (ORCPT + 99 others); Tue, 3 Nov 2020 10:07:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbgKCPHk (ORCPT ); Tue, 3 Nov 2020 10:07:40 -0500 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC19C0617A6 for ; Tue, 3 Nov 2020 07:07:40 -0800 (PST) Received: by mail-qv1-xf42.google.com with SMTP id i17so5808180qvp.11 for ; Tue, 03 Nov 2020 07:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4n4eKbeBF029LZEVM8Tx6GsjHib9jcrVPlcNT/Y/Yx0=; b=NSZmoJN8BVndRdwEMQQd1+hTP/RRmifn9wf265YZzYwbSlBwPLhY/7F+PPW8+Y/68Z WhaRUJ9ki+KpWXZMu3+oEIcJ3fB2Gebdj/gTiMHYKlV8qP+I6Q7s1tqR8f9p+oMu9ftV 5LSvV7PyTDq2NTyClPrKeEVZGckDJ2mmhvauo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4n4eKbeBF029LZEVM8Tx6GsjHib9jcrVPlcNT/Y/Yx0=; b=Ikkil5UmRD1O65DARgxMC5Pv85pEhrsfad0/wyv2mowa9a/6LQ6GMKRC7Iltz1rb7l p2V5Z0a8cImtBHcauW9vxUtNIySM5uo4NUXkzT0YyItwYz7kBp2l8MDTrQGwsIRdwFp2 /TtP2r6RKRWL6KXff7dGGdlwl+4gOo70Jt05wEUwt4MSbhi1doiitz/nIAsa576PANGZ fO8yAecNE7BGSI4wIkgYz2Q5HuN+gGEjSlhFQGm4lW6PfT7CdQ9K4kPofyVMXjT/pZFu QzXxXr0WYMhoBg38EU3BwZUhuoeXbL7iMUcd22On64dR9Oe6kH5mt0D1vNBCeEXRIdgQ Nl2g== X-Gm-Message-State: AOAM530Wh7kIQAFJWK+CIXakjXUj7f4/BFbhtQU67i7iFqrlx6OImdPw o6uPFxeAnAdR04Qb7Gw7Flmu8IVIy8uJpA== X-Received: by 2002:ad4:4985:: with SMTP id t5mr25591422qvx.27.1604416059573; Tue, 03 Nov 2020 07:07:39 -0800 (PST) Received: from localhost ([2620:15c:6:411:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id c6sm4857206qke.35.2020.11.03.07.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:07:38 -0800 (PST) Date: Tue, 3 Nov 2020 10:07:38 -0500 From: Joel Fernandes To: Frederic Weisbecker 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: <20201103150738.GB1304393@google.com> References: <20201103142603.1302207-1-joel@joelfernandes.org> <20201103142603.1302207-4-joel@joelfernandes.org> <20201103144714.GA432431@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201103144714.GA432431@lothringen> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) Thank you for your time, Frederick! - Joel