Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp996864imm; Fri, 11 May 2018 09:28:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqcT9AmEhX+RribF5Ny1vl+Zc0V0ADPGM2N4f5EvYGlZ2/hAqbWL0Eot0E7pF+zFEnvyvbQ X-Received: by 2002:a65:6182:: with SMTP id c2-v6mr5085730pgv.219.1526056105782; Fri, 11 May 2018 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526056105; cv=none; d=google.com; s=arc-20160816; b=HLAfBMZr69K21oS+pY1k62sXT6VTozkCso/xnFxgSv1pdkFOKDVv998J0rDI5BCauF U0UHGOJd5tRV+93RRBf1dtfoPwN9lRENpjuXmAme3SCppHIjADX1Jon3iBinEpIgwSre UmJyoqQkRr0Cau1RzQ+CnDRLIabhSedTu80OQhfnzjNAOe7zyAN7M12DlhKPlbxB4VJx JWiS4X6mPHYcjOuhmtjLB7lfXNN/7kGSgpfFQ3sSqw7iXL0wX70RHbITlThsehqYcnyz DzG2BUkJiLnLsfUA0rOMSdCJj4P3hjkWZ/MMwbCTe+JOb0vGdrrt30i2+51P105aSxkD FNDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=0MvXihOGthIoQWH3AvRUeiefEmMApLwLVmt/DnYM9a8=; b=S2ro9aaeLil7P24aX8zOm6TrCblzXzbc3VccoplXswxufr1aaKnjeVHf5zvoNzIfXT CqGBrbMp+AUsh0cqt1OupWBW2aYnAatMNhq07OC7kBcswnqj//CjxmiZXXEBnFJ2z+KS LLjLShoJVtXUJkPdjxFYHZCqzJg+Yv3Ejj81kpPHc+bWzForxDZe+6akvanwWPTxfK4v Xc7rVA3sTWem+0eXykGRQX8P56I5iUmoRRSnIJw0aM6TYSjDg5qhW5uo2dCHZ4RjdQJN /hR0SpmArzxmf+6Xu7KYHVl91jIS1ICGr+RtQbm20KiBCinwalMPhTFkf4DlpTEhBS1d iL0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=fmXbt33l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23-v6si3712848plo.508.2018.05.11.09.28.11; Fri, 11 May 2018 09:28:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=fmXbt33l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752107AbeEKQ1n (ORCPT + 99 others); Fri, 11 May 2018 12:27:43 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34387 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbeEKQ1m (ORCPT ); Fri, 11 May 2018 12:27:42 -0400 Received: by mail-pf0-f194.google.com with SMTP id a14-v6so2969309pfi.1 for ; Fri, 11 May 2018 09:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0MvXihOGthIoQWH3AvRUeiefEmMApLwLVmt/DnYM9a8=; b=fmXbt33lrOoL80ebgDeECvFEHxnb31HSBA1wSlElNfqP3bzT+SZDlgVfSXcx9Wb7Hp SzPZomOU2swFjwHnFYR5eXcoz8Xe47pRdp4TVcjeewWiiOG53AYruOhgCjTNFq8FUZj5 CsnVfIlSvx9MMLYMTl+WN95yIaOkOR+BKLWDWgLUItEjArqmmzRVoap7owWqYzGK0bcb d089RW4S16ya+PKpIlmRFGD9ZSRV3GT88aHgwz4TDuSrWueUtcnDEzKB5ak9FWUXKNJ4 w7WdtZ75HeFL+ILhmGF8liXc1j5qnQrhOPFCy1XCX/uzqEN4JfS+HAb8L+0MfwUiPxs1 gAuw== 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:user-agent; bh=0MvXihOGthIoQWH3AvRUeiefEmMApLwLVmt/DnYM9a8=; b=ufZ6Dby2nYFfkLIzEmXJ1dK09Jozck6SnIORDfr4G42umP/7CdJ02/yuxNNFmPgqcM Il9KGi349CUjwn/g6Cj4Dc+V0o1nDkw4D6pbWWud0ytkTABZEEHxtJssFVvR7e4FfiKa FIkaNRusZFdEBYFVLTZvACyprtVg7UexkXMvaabuchReyHzKiG8IkVmnP+EHtqRjKit/ 80RYaxX0WlNF3JM13GpjvLX9MJRSpZYDaK5v64bw8z5Ab3fsHzXS2/C33753z6CyDCiu XB3tXy1MaWKIZ8OlJQIIGKJ/dkzgvnBwF+KXof/GbjM8AJOgkFIPFfWrMHfdxwktjdz1 vXSw== X-Gm-Message-State: ALKqPwdmRV7MdznAf9+gVUM0NTVBWIdCoFo6fSheE76tD4Sc80ZWtM3I 4abBuEjlGT1qh4cq3gbFyTgvNg== X-Received: by 2002:a63:6584:: with SMTP id z126-v6mr5009765pgb.168.1526056061742; Fri, 11 May 2018 09:27:41 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id w8-v6sm8821877pfk.112.2018.05.11.09.27.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 09:27:41 -0700 (PDT) Date: Fri, 11 May 2018 09:27:40 -0700 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, torvalds@linux-foundation.org, npiggin@gmail.com Subject: Re: [tip/core/rcu, 05/21] rcu: Make rcu_gp_cleanup() more accurately predict need for new GP Message-ID: <20180511162740.GA23152@joelaf.mtv.corp.google.com> References: <1524452624-27589-5-git-send-email-paulmck@linux.vnet.ibm.com> <20180510072133.GA122810@joelaf.mtv.corp.google.com> <20180510131546.GN26088@linux.vnet.ibm.com> <20180510173754.GB228531@joelaf.mtv.corp.google.com> <20180511162443.GA26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180511162443.GA26088@linux.vnet.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 11, 2018 at 09:24:43AM -0700, Paul E. McKenney wrote: > On Thu, May 10, 2018 at 10:37:54AM -0700, Joel Fernandes wrote: > > On Thu, May 10, 2018 at 06:15:46AM -0700, Paul E. McKenney wrote: > > [...] > > > > Also in rcu_future_gp_cleanup, we call: > > > > trace_rcu_future_gp(rnp, rdp, c, > > > > needmore ? TPS("CleanupMore") : TPS("Cleanup")); > > > > For this case, in the final trace event record, rnp->completed and c will be > > > > the same, since c is set to rnp->completed before calling > > > > trace_rcu_future_gp. I was thinking they should be different, do you expect > > > > them to be the same? > > > > > > Hmmm... That does look a bit inconsistent. And it currently uses > > > rnp->gp_seq instead of rnp->gp_seq_needed despite having the same > > > "CleanupMore" name. > > > > > > Looks like a review of the calls to trace_rcu_this_gp() is in order. > > > > I see you changed trace_rcu_future_gp to use trace_rcu_this_gp in 15/21.. I > > am not sure if the concern is still valid then since you seem to be correctly > > getting the future GP in those cases, except for the naming which I suggest > > be changed from 'c' to 'future_gp' just for clarity / self-documenting code. > > Indeed, "c" for "->completed" is completely outdated. ;-) > > Would you be willing to send a patch providing a better name? Yes for sure, I'll do it soon, and will also review the gp numbers. thanks, - Joel