Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1017501imm; Wed, 20 Jun 2018 10:10:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ7Hob+N/jUKawsvSYoiy5nVRKOLFb6dJfYoEAJvX01rJx92/xYAWwTl85oc59kyJR7CiNm X-Received: by 2002:a62:4255:: with SMTP id p82-v6mr23918659pfa.227.1529514636622; Wed, 20 Jun 2018 10:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529514636; cv=none; d=google.com; s=arc-20160816; b=OhLtHWQuEMRFa2KiiFBTvyGc1zy9NZP0jmhY5HHToa7t6QID1wmRla0A5vTzibH9k5 kbC4gjM3jkEyT0lv00JuM1+e85bwKAxoWeOfXIk/gCBPd7Sn6vC6J1Gv6WOCvdxpgNRa ISdUOwj9Cy1mLi95grYw00Zz0YVj7/+nJesFGc47ejp/izDO9L/uRwNw+hAyDaY2JMBm JZFA80YhAInYdRfhe1l5VZ8Dy2mS+MOkWeFmcJy2OF7RD/3U6cMIbcGSc2CM92EAuh4r x5+6QHnjJFqslv1zfcMTHBR1svD8RSGrst188147Hugf26YgWIo8y7tw9lDIY81v/nSE fp8Q== 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=nv+4txqpMMV/T7VX4/d0qRcqD4dlNuXLJyQYvI3xmvg=; b=IWbVnCGCuWKuqkYUePYlMRi8abntZ0dZcLbhvB081S78wpLogylcWZ+DCL2xa1C9DO j7Be15udoCBt4wmrG7oc0WfcZv1JuNBK82xolGNs/3B/IQaDaaPMCwahyDOYK7Av+Zau zfH17PMnTIdwSIfdwipFnhtov51WWZeBu5IFSG7LqV4pQzFL+m82MIYVXKGhr7+sWEum bMLGZxFKg+lijhKpseSbFPk96ugfCmPUAgRgPVbIXgmRfiHsewZXIYI/h3maVZgQUWlZ JbPcw4eIqgqxUBLMFVvYDEDPMbY3XEoi10D/whZ1UE8irvCfjtzwsdU/YjVCPv+lDnH8 wl1A== 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 t3-v6si2848432plz.93.2018.06.20.10.10.22; Wed, 20 Jun 2018 10:10:36 -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 S933070AbeFTRIs (ORCPT + 99 others); Wed, 20 Jun 2018 13:08:48 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35236 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932153AbeFTRIr (ORCPT ); Wed, 20 Jun 2018 13:08:47 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5KGx1MU139361 for ; Wed, 20 Jun 2018 13:08:46 -0400 Received: from e15.ny.us.ibm.com (e15.ny.us.ibm.com [129.33.205.205]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jqrc6qyks-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Jun 2018 13:08:46 -0400 Received: from localhost by e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Jun 2018 13:08:45 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e15.ny.us.ibm.com (146.89.104.202) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 20 Jun 2018 13:08:41 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5KH8exI9634254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Jun 2018 17:08:40 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6553CB2065; Wed, 20 Jun 2018 13:08:28 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 468C7B2068; Wed, 20 Jun 2018 13:08:28 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.159]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 20 Jun 2018 13:08:28 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 71A1B16C9B49; Wed, 20 Jun 2018 10:10:41 -0700 (PDT) Date: Wed, 20 Jun 2018 10:10:41 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Byungchul Park , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , peterz@infradead.org, Steven Rostedt Subject: Re: [PATCH v2 1/3] rcu: Assign higher prio to RCU threads if rcutorture is built-in Reply-To: paulmck@linux.vnet.ibm.com References: <20180619221419.41340-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619221419.41340-1-joel@joelfernandes.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18062017-0068-0000-0000-0000030BDC52 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009228; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01049798; UDB=6.00537943; IPR=6.00828771; MB=3.00021761; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-20 17:08:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062017-0069-0000-0000-000044C0629B Message-Id: <20180620171041.GY3593@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-20_08:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806200187 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 03:14:17PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > rcutorture boost tests fail even with CONFIG_RCU_BOOST set because > rcutorture's threads are equal priority to the default RCU kthreads (RT > class with priority of 1). > > This patch checks if RCU torture is built into the kernel and if so, > assigns a higher priority to the RCU threads. With this the rcutorture > boost tests pass. > > Signed-off-by: Joel Fernandes (Google) I queued all three for testing and further review. I reworked the commit logs a bit and also pulled the error string onto one line to make it easier on people grepping for the message. Please let me know if I messed anything up. Thanx, Paul > --- > kernel/rcu/tree.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index deb2508be923..92c29439eba6 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -3884,12 +3884,16 @@ static int __init rcu_spawn_gp_kthread(void) > struct task_struct *t; > > /* Force priority into range. */ > - if (IS_ENABLED(CONFIG_RCU_BOOST) && kthread_prio < 1) > + if (IS_ENABLED(CONFIG_RCU_BOOST) && kthread_prio < 2 > + && IS_BUILTIN(CONFIG_RCU_TORTURE_TEST)) > + kthread_prio = 2; > + else if (IS_ENABLED(CONFIG_RCU_BOOST) && kthread_prio < 1) > kthread_prio = 1; > else if (kthread_prio < 0) > kthread_prio = 0; > else if (kthread_prio > 99) > kthread_prio = 99; > + > if (kthread_prio != kthread_prio_in) > pr_alert("rcu_spawn_gp_kthread(): Limited prio to %d from %d\n", > kthread_prio, kthread_prio_in); > -- > 2.18.0.rc1.244.gcf134e6275-goog >