Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp267640pxt; Fri, 6 Aug 2021 01:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2lQQq1L3VDN5LCeYCUBuzpYMeoXlGH497JbjBpMT0VdVHUAeqN4gqGhqo2vsKtM0vOmwP X-Received: by 2002:a17:907:11c4:: with SMTP id va4mr8683225ejb.37.1628237809003; Fri, 06 Aug 2021 01:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628237808; cv=none; d=google.com; s=arc-20160816; b=V5YzHGOvs5Ruh36yZ0S76f4DDDE/nZgm7Cl88pcXXtXAt4m5t1OYWpIhpYGR8JZRqI YDxlvo+5uASh6ZamPv3Vr7W9zTslfzmlWvdPYEqA2Q8uKDCybKHv6nGs7JgF7tOHd45O qs0zLcXsrwhZ99/UhUzBDkNQ0L0s3CXpcx1vHGqe6cOOPj5GyNM56GC4eTgXdEAR0wfS 3/zCogvzWeeIZssNDqc9HCZYzPnmwZkbNBUONjZwDFHyq0Ml7/AMklMqmP6HCuRYUHdX LjIaL8kHDIZjOaJMWTTqqltjIxC0UiMNKvV3+eCc6tMlDlWWP384ZDxnGWdGyGCv+f0B DDLg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=KQ5uAG6ZB/PH2y+g6j7pYC8+D6CZBF5GiL6FM0n8k9c=; b=liUUPLL+ceD6Z5YUZlYUAW/OuIBMHKRkaHHvbsXOdVtgwOv6Q/O9+N6ym9kq2nyXj8 ramLMJ4qDO1YAKbfX67895WIIYEmTx8Glz0fkRypit79z7UkVeiSz5T9XtnnA42L87MS E4udINmpDYXixiSHD914nEOE4Qi9RKY9eYhH6ctPLmVm0Fz1M94JSeEGjvkqD7/QVzZ5 TRoloaRF/y1tfF0W00CYoHOAmQV3CYLFoAmV47HsDmjRHGxkoBQqa5xiY8hw+FAOTKPs jiV2qKHRZiYQXpo+3FYfx0C53iJbNIo1QO9EzyEe+IIWK0B/OxotFJl1U5zAnScS7U4e Qa/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HH1mPM+X; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si9615532edl.245.2021.08.06.01.16.20; Fri, 06 Aug 2021 01:16:48 -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=@redhat.com header.s=mimecast20190719 header.b=HH1mPM+X; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238157AbhHFHl1 (ORCPT + 99 others); Fri, 6 Aug 2021 03:41:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:45764 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbhHFHl0 (ORCPT ); Fri, 6 Aug 2021 03:41:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628235670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KQ5uAG6ZB/PH2y+g6j7pYC8+D6CZBF5GiL6FM0n8k9c=; b=HH1mPM+XAXV+e8ZjHsh94p5efFvfrCZtjp7zwKshNa8iWviaO8KKZF1YJcG9dHwccEj1kn vjE/AyRkSZbYEQ00FMpA6/Ahuw4FuvR38vIfKYT0Sb6RoD9UfuuIsHFtwIAufH4gy/rqPW KfKakh9sBjIE+7rluGblWPZD9RnHwaA= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-204-HQEBg0q6NtihrEBDANk30A-1; Fri, 06 Aug 2021 03:41:09 -0400 X-MC-Unique: HQEBg0q6NtihrEBDANk30A-1 Received: by mail-wm1-f72.google.com with SMTP id c41-20020a05600c4a29b0290253935d0f82so3576300wmp.9 for ; Fri, 06 Aug 2021 00:41:09 -0700 (PDT) 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; bh=KQ5uAG6ZB/PH2y+g6j7pYC8+D6CZBF5GiL6FM0n8k9c=; b=KCRc0/4oJfsXx2A7NsoDaq9SVhp063D1xjlF4W/qse0eGuZZ82jlGOxU3+xJTXvqek zV25vYn1kAsfw9ElQx97qwau7kTs4HrHCjKzMOisdoLmUziHoZQzs7WOqy1Irj0QQkXk zQWrrYRXGpy7zJnCnWBKs3FZS9OfCr8ebRs3XMRoZXdV/3BlEBIWPFbq0DKP/WLV3sNL cvtu+LedObyl0S3VgVhqUJIi7llJFaPOSEG8dHIgLIm3D/NOu4FBUIq6PzQiZl0Re0D0 DcZ5D/O42ayCL6+Fd2AI9iTno0RW60lLL5kOecS9RsGchNLsCGNtCHYOomUJtSN+Paue R4eQ== X-Gm-Message-State: AOAM5307HxPf+PhSg4wBvBxoiGqJb0M0paPBI4WUnLsySs82v6F4rfa3 basQ4UHSZ7qVZ0DFisSH8ooA3YQjc3/jcbmIDk6vCUBFewPw8HwOweAKyOosP6xXgr5l7iQFaBL gAACQAdqDJEL4mvg9Kl7QQOyz X-Received: by 2002:a05:600c:acd:: with SMTP id c13mr1865578wmr.189.1628235668426; Fri, 06 Aug 2021 00:41:08 -0700 (PDT) X-Received: by 2002:a05:600c:acd:: with SMTP id c13mr1865564wmr.189.1628235668273; Fri, 06 Aug 2021 00:41:08 -0700 (PDT) Received: from localhost.localdomain ([151.29.52.108]) by smtp.gmail.com with ESMTPSA id l7sm7614019wmj.9.2021.08.06.00.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 00:41:07 -0700 (PDT) Date: Fri, 6 Aug 2021 09:41:05 +0200 From: Juri Lelli To: "Paul E. McKenney" 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: References: <20210805080123.16320-1-juri.lelli@redhat.com> <20210805160337.GI4397@paulmck-ThinkPad-P17-Gen-1> <20210805210824.GA1203206@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805210824.GA1203206@paulmck-ThinkPad-P17-Gen-1> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for reviewing Paul. On 05/08/21 14:08, Paul E. McKenney wrote: > 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. Indeed. Will add the change as soon as I receive indication about your first point. Best, Juri