Received: by 10.192.165.148 with SMTP id m20csp1437272imm; Thu, 10 May 2018 10:38:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyoFQVhfNSwaESu/t8fUU70/Gv/qPhXlmvqeNe4q/phzyrSMhPVIsg/Ttwix+OgQyr/N3x X-Received: by 2002:a63:2bc4:: with SMTP id r187-v6mr1799464pgr.231.1525973924495; Thu, 10 May 2018 10:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525973924; cv=none; d=google.com; s=arc-20160816; b=qXXJmTX+9jxq0QxU5TlcD27wD62htp9cvXOsj6L4NoVsvwygI1+KvgoqgHnTju+6QZ WKRekAozpCtuOq7byHGZfrSeRwb4jFsmRKT04o61/i/8kpcB8DlG3ukUqWpw6tXOJROK 75jQMPjOBxOS+j1DB6HY+cpdM38RwDl7G6F1ieZ1REhtlmoDZNdubNJBeDzfyiQGK9sp mD7I2g2hnhDvHNDsqhflwz7rzZPbs8nXbLSYPUaErvf4C+4EZc/KOydzNytlF1bO1+pN 78zdjXypBdYGh1Q9fwJZYkhY2cyB/o/VWffY/JkA6BK0wjkmPIUrh2uaL0RuvEy6jnbY Nkiw== 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=wWtmw5x1wej+Ph2IVKy8wW006EbhkMClu9nxYD1AF4M=; b=Vh6AMVwHfL1uRX5zXTXT/eodtHItCIeU+taL8zDeT6reP6wM3SR5QWi90x6nrTTG7p WT2uYL3Zota2MqCA0g4gIicOBKl00bGZcgL6dKj9wLCPw9XBlh+GRsgeV1shtGyMAl1u idUVFxVV9154yb/CWs/JFufdbO3pnNEP0eGfDzWIh8tiartuPajQ8VCrVWLPYgbsoeob JsNMI/lOmEkukizsyq5VJpsq1uYDd5pS9JznQtiufrRoTbnoQMMD01QMgh/gRbBSl/Nw fbJXl//kQgHyH8hKj/oGCWBD9RGHqYY+Q3jWZHYMxjABrMpTVM/BKkNcdqMuqpE7escW OdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=zEF6R0nq; 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 t9-v6si1259228pfk.228.2018.05.10.10.38.06; Thu, 10 May 2018 10:38:44 -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=zEF6R0nq; 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 S966749AbeEJRh5 (ORCPT + 99 others); Thu, 10 May 2018 13:37:57 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:42389 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966673AbeEJRhz (ORCPT ); Thu, 10 May 2018 13:37:55 -0400 Received: by mail-pf0-f194.google.com with SMTP id p14-v6so1405346pfh.9 for ; Thu, 10 May 2018 10:37:55 -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=wWtmw5x1wej+Ph2IVKy8wW006EbhkMClu9nxYD1AF4M=; b=zEF6R0nqjeuInh0n/rJ4jvTnDh/P8HGXoAsIM+OYvceA3I2S1QHzLwhxWdW1xqGwo2 +GP1VBHFjbUaI5+/oANAKQMxkVlleOJbyP9HHxiwa8kfQM4grSS+cJSwl0dqS3PPIP/9 /iDKUEBB4/iU14bFhz+uT0cXJut0Xfr9mCKGEAeAyJz9WqExhh+nA/mpAVfdN92hcdA+ fiqo4SuHlpbPMLuEA0+TzP4nfkefP7j4vtjTFR/Y43WJqIsAKnejt/ekVTxnF+tJiXBy hvxE3XcDilWqg+wUN9Q5tzBw1PhPf4Rf/eMAdbzhkrQNgf3zmR8HNJX1lAFfsxA/lKZH 0JQg== 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=wWtmw5x1wej+Ph2IVKy8wW006EbhkMClu9nxYD1AF4M=; b=Wgjoj62W2ENMvVTHb7MjVAQX0kZHP4e+Zc3R6rjI6Rod7QunmMTLVJUedqa/RYbIBC 7KNCW22T/Sr8vbogsyH55ugZuokNhPFGYys4gwY9JwhmAL4QlEjETk4S6HFP68KqK/ko h1LYl8H4sQmS5W/Tjg3TJgFQP6R8z4wmcjxkckB371PT5pAQONBRLgNFQ2njhIvUWvFz d9QaWP8+XTSdCc2quEuEqW9c5Z09KUFAMAys5lwEN7nfjJeR1Jtqzei/k3RAO/I6awBJ 5eDe+U8vPbK+KAxSsdwKPlQ5vXG8AQZaIMuGT8pUB+cTQyrCNMBkToOY8C500UeoBZvi cb3w== X-Gm-Message-State: ALKqPwe13CnXQyA7uFEw9NeQH9rREyW/L5hb5ss93N/Tw3nJl2oR365Y xRnstU3EQygUkTUIuy6fIW4OXg== X-Received: by 2002:a65:4c82:: with SMTP id m2-v6mr1850152pgt.23.1525973875400; Thu, 10 May 2018 10:37:55 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id v1-v6sm3845914pfd.2.2018.05.10.10.37.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 10:37:54 -0700 (PDT) Date: Thu, 10 May 2018 10:37:54 -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, joel.opensrc@gmail.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: <20180510173754.GB228531@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510131546.GN26088@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 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. thanks, - Joel