Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp992646imm; Fri, 11 May 2018 09:24:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrPiVrdOVPXFcc39Oh5r2ik/I57W4RV+W8RHatzD/TcWn/L9mKMk5QNfwwrzpKDBjg2QB3L X-Received: by 2002:a17:902:7444:: with SMTP id e4-v6mr5909763plt.225.1526055862017; Fri, 11 May 2018 09:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526055861; cv=none; d=google.com; s=arc-20160816; b=B0kkHkrs8b8owCd/76kSuJvhCOsczMiSuNYh44JsFyzvVYqibdzAHQvHvXyyuzDlNR I42BvV19TTxsmvgW/aGnKQFPWICpAAaEyeKJ+q4DkmuiWqeLQacPKnTcsLv6F8XYIBNK l44018ObqAIKMrpaYAlL1Ow0w1oj2/VIKGQoocFc/7yGZeRO0/nzBtHts/NAqW6+bUZK Yqi5ljMZ/XgYMxJQ8lB6YRBnSzx7QsrFWQGaDs49qYfEHqUHEbg9OCvq86ERHPrED0ht SnAppxyI7c6G6BxkwFrS6NhbVwv9xuA8qnvRwlq0oT3tc7ZKisBm4TeIrkopGvaeiaHI RrSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=V/MpckeBnUuq84lJtYs5Qj6vzmr8lQxNfaVHuRFqL1A=; b=GS56+dUZEV6kIHh92hI/x4rKyJJYhZUscOvRFHELdPxJv/gTWDxgVqt2m3k5IaaguX SzZH6KY6lNnqSLBhW7RbT5/fhdbYgr1tevzC9QzDq/BQIzZGwZP0RXWjo+p6Jy+fjF+M LjZy29rK8OH2Wri7DQYjukzyB6d7nLCfvrU3JTVuGOg9hbFwbnWjw28gD4f3wM3uQqI+ cIapP30wFQTfXNrC7zbwppRHPw+FCIja3Zq8GNHGYnTkLR49DO4847+1H/svlAnfP2FR JH0MMssyIAfJOT4xYZweBXKfw0+Ok4A827fw+GgSiOPeFkDCHVOrYAh1ytjhE3RUOVRm RuAQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si3362605plg.504.2018.05.11.09.24.07; Fri, 11 May 2018 09:24:21 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752427AbeEKQX0 (ORCPT + 99 others); Fri, 11 May 2018 12:23:26 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55134 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752405AbeEKQXW (ORCPT ); Fri, 11 May 2018 12:23:22 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4BGJS4a136988 for ; Fri, 11 May 2018 12:23:22 -0400 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hwbukrdfc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 May 2018 12:23:21 -0400 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 May 2018 12:23:21 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 11 May 2018 12:23:15 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4BGNEHE57606256; Fri, 11 May 2018 16:23:14 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5616CB2054; Fri, 11 May 2018 13:25:13 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.188.179]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 1B219B205A; Fri, 11 May 2018 13:25:13 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 698B216C2AF0; Fri, 11 May 2018 09:24:43 -0700 (PDT) Date: Fri, 11 May 2018 09:24:43 -0700 From: "Paul E. McKenney" To: Joel Fernandes 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 Reply-To: paulmck@linux.vnet.ibm.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510173754.GB228531@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18051116-0048-0000-0000-0000026BAF15 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009006; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000260; SDB=6.01030800; UDB=6.00526835; IPR=6.00809931; MB=3.00021049; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-11 16:23:19 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051116-0049-0000-0000-00004515E040 Message-Id: <20180511162443.GA26088@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-11_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805110154 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 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? Thanx, Paul