Received: by 10.192.165.148 with SMTP id m20csp3412337imm; Mon, 23 Apr 2018 06:13:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+I/Oxs0Z8iVdOpZfkvm+zPkPdHRf/HWhy71Hp1FSgQm6M19EIXuYzLT6V6WwZg//PWOQtO X-Received: by 10.98.139.146 with SMTP id e18mr19402668pfl.60.1524489233986; Mon, 23 Apr 2018 06:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524489233; cv=none; d=google.com; s=arc-20160816; b=nE8VLKJh3gPQpM0WrOHXHL3BCePKYIVsa1wR4+3AUjYYZ6Q+WtNKH6NFoO64R7epkS rm/6VKc/tMxb5PaQWmrOaEW29ve5d0J2sjg2I7gAn1g8YqHY/GtEU8DFs0h25rS/6H72 sprYTthgrrQq7G4KtTrIItbUBNP4JQiLWBZH3qg2HBQDjjcXHHcUkv3OLiWyNhtPUVOF 8LXfW9iDOUl98ATSVqjoEzyq5yvthWA+aeIQAihuJHCMroUCpuXPNVDJLGYtviXkSh1v O3sapIY3SPrG/566vXOOXW6NAu1Bkz/64MgxsPvlkhYNZoFOd6KB5Qp9KMbV0Q3TcEFB QoJg== 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=zIdW/UF+LEzDSRKfFX4pE4mMWebK7Y2RjUzxBhr2WdQ=; b=HtIJ4PHNUWe+PI97sye+qZ2T0svWSTgArmfwVvSL+wLK//1b/xZQptPdre33lBRMqF Dn+lEvSlRaxvEqe+j+76GrnHjopCfuueL+BDdMVKLPI2iQwu4U/af6oy7c6C5AG1iYPd 1sfmANL+5rwdNljaGst5cAQNetsDPuEMaGgYHY5hkfBOGTuzzOHJI6k+GNxOH3D8hit+ HMvexiedh5MnCLDqyy9QeEuk5dk3aMXjZlPrvxGTwFGeYks/RCMSJ+Ft/fE0AtPUgHqM OariloSbX7R7Q1U5kx5S8yqfO5mKshyJEp+Q5uiAzDd93Vfdu8UhcuYrEGT0auy/+/90 BM4A== 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 a9si9388438pgw.592.2018.04.23.06.13.39; Mon, 23 Apr 2018 06:13:53 -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 S1755078AbeDWNLX (ORCPT + 99 others); Mon, 23 Apr 2018 09:11:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41944 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754874AbeDWNLV (ORCPT ); Mon, 23 Apr 2018 09:11:21 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3ND9hGV129283 for ; Mon, 23 Apr 2018 09:11:21 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hhch6a2h8-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 09:11:21 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 09:11:19 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 09:11:14 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3NDBEnJ51904634; Mon, 23 Apr 2018 13:11:14 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE9DEB2050; Mon, 23 Apr 2018 10:13:16 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.149.45]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 821C3B204E; Mon, 23 Apr 2018 10:13:16 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 0AF3F16C8776; Mon, 23 Apr 2018 06:12:28 -0700 (PDT) Date: Mon, 23 Apr 2018 06:12:28 -0700 From: "Paul E. McKenney" To: Peter Zijlstra 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, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel.opensrc@gmail.com Subject: Re: [PATCH tip/core/rcu 06/22] rcu: Rename cond_resched_rcu_qs() to cond_resched_tasks_rcu_qs() Reply-To: paulmck@linux.vnet.ibm.com References: <20180423023150.GA21533@linux.vnet.ibm.com> <1524450747-22778-6-git-send-email-paulmck@linux.vnet.ibm.com> <20180423085347.GS4064@hirez.programming.kicks-ass.net> <20180423123223.GK26088@linux.vnet.ibm.com> <20180423124855.GZ4064@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423124855.GZ4064@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18042313-0024-0000-0000-0000034CF5DB X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008905; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01022101; UDB=6.00521662; IPR=6.00801336; MB=3.00020725; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 13:11:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042313-0025-0000-0000-000047C41944 Message-Id: <20180423131227.GM26088@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_05:,, 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-1804230137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 02:48:55PM +0200, Peter Zijlstra wrote: > On Mon, Apr 23, 2018 at 05:32:23AM -0700, Paul E. McKenney wrote: > > On Mon, Apr 23, 2018 at 10:53:47AM +0200, Peter Zijlstra wrote: > > > On Sun, Apr 22, 2018 at 07:32:11PM -0700, Paul E. McKenney wrote: > > > > Commit e31d28b6ab8f ("trace: Eliminate cond_resched_rcu_qs() in favor > > > > of cond_resched()") substituted cond_resched() for the earlier call > > > > to cond_resched_rcu_qs(). However, the new-age cond_resched() does > > > > not do anything to help RCU-tasks grace periods because (1) RCU-tasks > > > > is only enabled when CONFIG_PREEMPT=y and (2) cond_resched() is a > > > > complete no-op when preemption is enabled. This situation results > > > > in hangs when running the trace benchmarks. > > > > > > But a few patches earlier you tried to address that.. > > > > Yes. And all this patch does is change the name to better match > > what this primitive actually does. > > > > I could merge the two patches, if that would help. > > I understood the earlier patch was actually changing cond_resched() to > also work for task-rcu; which resulted in it acually not being a no-op > for PREEMPT anymore. > > But then here you say it doesn't because it's a no-op. > > It's not about the rename.. It is about one patch changing PREEMPT > cond_resched to not be a no-op and you here justifying things because > PREEMPT cond_resched it a no-op. So would it help if I instead said in the commit log that it is a no-op in production builds of the Linux kernel? Thanx, Paul