Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp902076pxt; Thu, 5 Aug 2021 14:48:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn2Rs6Kkxt/sZLuQu5pBBlGWbX/qAapxGakYK0eU94S3xCFYTEgWZJPbOyVT3RWkzxVoqX X-Received: by 2002:a17:906:158f:: with SMTP id k15mr6751388ejd.241.1628200088943; Thu, 05 Aug 2021 14:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628200088; cv=none; d=google.com; s=arc-20160816; b=IThLqllt1A3asD5LhEVNoX1L2wiiwkjZe3ws/9glvYe5YNwKj0XLt4M5ostp9sbhTu 8dDVR7LeIKPnfD+4M1FfTRpZ3EziAcnUPGv151IKOlG8fMnLkcwx3HGtvjpc2lcYb5b1 lutkVIOmLV37qL5Jpf282mB/6gHkzx0HSG55ggNUNUceXIeBOkAcILoiciGi2YrLZjCr UQPdgnf17xjKhn/oW54Y+vecmAl66nb+Xbw16xZrstnSp2LrvLbZzavEgGk1LvE7icwU L4POp0M2KIqa6INNwNaMrkD1t2wVd7GW/sViu2LBtHJ+HQTdaXSqdJDJGZp2BulF7UMI YYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Z8hTvVxr6/Bk9iq0+R8nlC3DnnOrWsJIzgwo35UwDsk=; b=uaNQ+/fGlwZkPzK6Rj6pXSkYMYlfF20mEIz20LKVXM6othTPdLAdseX5HJJtuFWGTb iQMyMow5usAGnnpA56uTEFLpCgOjbuhR9w8HtX5obtWVPeJDuBzz7Yo/7u7KE8C2JyOS 880Pj7IzFbX29xhof+C9usZ6cfohjS3HFhzNv22lkB4JBNcoeCH9Wtkol+ohEiMX50R+ M9xg9zjLTsMgV0sG+WjkXf3m8a/6sWaX5+QRORnocIpB74Pf8PTZdHBxd3127bGclmiB acZY4eeCFTTpIrH1tq2wF26fJo4nm4FN3lX342l1nd1O+E/eIYivYZm+DaHDg5peJILa UGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHRGhN7t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci21si6154581ejb.252.2021.08.05.14.47.45; Thu, 05 Aug 2021 14:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHRGhN7t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241743AbhHEVIk (ORCPT + 99 others); Thu, 5 Aug 2021 17:08:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:58912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241387AbhHEVIj (ORCPT ); Thu, 5 Aug 2021 17:08:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 71EF260EBC; Thu, 5 Aug 2021 21:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628197704; bh=SRtaowijoG8twAxHHQPP1frqmBFYAiBOGw+39md1RVo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=nHRGhN7ts/aOENkjY13K+SLhMIvNR351kTPTtkF6AnSvp5rr/ExKU5kckq0dKRbpY O6+vZb5T1E5OZ/iJVTPbClsqti5PgCkvIULQYEfLc0ffrXYE6czPD2xZPkOCzDu0SV ehNOYEfQBriqlXvRGwYghWT9mMTFacUzReWgtgHw1jGf1UAvE7bUBwx9WqPmgffoPa i9djO3u2yhnd6R7dbjnJz8WaI/kVG/o44IsEbL2vTumJaocbnWNIcQFwHTL6F6bm2b 3+R3xcp+yWN5TVVD8yR9/UpOnGZCf9kcbEu5i/Sb0t0eoF37mJWDuGa9wfdujoTxhR 9Ih14r7LrNMmQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3D48D5C271F; Thu, 5 Aug 2021 14:08:24 -0700 (PDT) Date: Thu, 5 Aug 2021 14:08:24 -0700 From: "Paul E. McKenney" To: Juri Lelli Cc: josh@joshtriplett.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, peterz@infradead.org, bigeasy@linutronix.de, tglx@linutronix.de, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, rcu@vger.kernel.org Subject: Re: [PATCH] rcu: Make rcu_normal_after_boot writable on RT Message-ID: <20210805210824.GA1203206@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210805080123.16320-1-juri.lelli@redhat.com> <20210805160337.GI4397@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805160337.GI4397@paulmck-ThinkPad-P17-Gen-1> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 09:03:37AM -0700, Paul E. McKenney wrote: > On Thu, Aug 05, 2021 at 10:01:23AM +0200, Juri Lelli wrote: > > Certain configurations (e.g., systems that make heavy use of netns) > > need to use synchronize_rcu_expedited() to service RCU grace periods > > even after boot. > > > > Even though synchronize_rcu_expedited() has been traditionally > > considered harmful for RT for the heavy use of IPIs, it is perfectly > > usable under certain conditions (e.g. nohz_full). > > > > Make rcupdate.rcu_normal_after_boot= again writeable on RT, but keep > > its default value to 1 (enabled) to avoid regressions. Users who need > > synchronize_rcu_expedited() will boot with rcupdate.rcu_normal_after_ > > boot=0 in the kernel cmdline. > > > > Signed-off-by: Juri Lelli > > Makes sense to me! > > But would another of the -rt people be willing to give an Acked-by? > For example, maybe they would prefer this kernel boot parameter to be > exposed only if (!PREEMPT_RT || NO_HZ_FULL). Or are there !NO_HZ_FULL > situations where rcu_normal_after_boot makes sense? Ah, and this will also need to be reflected in the WARN_ON_ONCE() in synchronize_rcu_expedited_wait() in kernel/rcu/tree_exp.h. Thanx, Paul > > --- > > kernel/rcu/update.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c > > index c21b38cc25e9..0fdbf937edac 100644 > > --- a/kernel/rcu/update.c > > +++ b/kernel/rcu/update.c > > @@ -57,9 +57,7 @@ > > module_param(rcu_expedited, int, 0); > > module_param(rcu_normal, int, 0); > > static int rcu_normal_after_boot = IS_ENABLED(CONFIG_PREEMPT_RT); > > -#ifndef CONFIG_PREEMPT_RT > > module_param(rcu_normal_after_boot, int, 0); > > -#endif > > #endif /* #ifndef CONFIG_TINY_RCU */ > > > > #ifdef CONFIG_DEBUG_LOCK_ALLOC > > -- > > 2.31.1 > >