Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp542740ybt; Wed, 8 Jul 2020 06:10:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzRmXP7N/PaxyDXEPV/o1wXREtiosfQniXhSqPdQMyt6wAFlpigqw7VdI1Y586LNuA5C3p X-Received: by 2002:a17:906:eb93:: with SMTP id mh19mr50260446ejb.552.1594213845564; Wed, 08 Jul 2020 06:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594213845; cv=none; d=google.com; s=arc-20160816; b=dkYkQ89v6DPpntPVystenOWsy2X49lNRUpP/NVJ8ljNWCNE91X5I/IOA9QOZ+ujWDI nIlwk2tkPihTOx4o5kng+XA9fA//OEK27o0yCzDrsCF49l6/rybZvlKSXz0iRJjvSeoy Lb8FyD/1pF3cxsKiOB9P5mil9grV7jKhmc3at3sCnjId3S7+gCQkKVStltJ/waUuX8V/ JHwbRdpIt7/+aXG/G7HrAvM+7MsUt6I5z1/q/H0UUD8me/jRqquILRmWfP2ag5UNEQXO k6zxe+xRu9DU/eXooB59aO6LxGRMDg/9y8kxg/YKMYoewKDX2ytxoUijIms+qWQkBJN3 vq5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3rnOAGdGHuGpsiy3JF+/XFijaJK+IVIWaB3+BZ06Y/0=; b=PcAK2bAoRdt/ix7W1mSP5AWCTxwWv30Vj93mjr+c5XvDATOKBGQh6dt4upO7Elwd2l u9npbwqMMmm4tE+M/5Of3aEMQQJkrTajxKieG1eMTkmo1UqZo6/JZ5fNWldzaUWPbsWU EMX2BCpgBHk2au5gEtBsoIa+P5Qc+yGo12WEfIlW9S2WNY8DuanFgqk7smBojMEFvnfz uotOlhtxMHuscHfTdzueLle2xsgJEthZD+KXB+FfvhXd0X67o1Lbuionb5tqWYAy5SqD tizwkh8Rmz7y/4fcq9V7Y/Huxwnf5rV13P4UboZWUiOyxqt9MXXseIz8pqH8KjFCyfVI x0VQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si16151838ejw.604.2020.07.08.06.10.21; Wed, 08 Jul 2020 06:10:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729216AbgGHNIj (ORCPT + 99 others); Wed, 8 Jul 2020 09:08:39 -0400 Received: from foss.arm.com ([217.140.110.172]:39262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728997AbgGHNIi (ORCPT ); Wed, 8 Jul 2020 09:08:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2B4AE1FB; Wed, 8 Jul 2020 06:08:38 -0700 (PDT) Received: from e107158-lin (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B71213F718; Wed, 8 Jul 2020 06:08:35 -0700 (PDT) Date: Wed, 8 Jul 2020 14:08:33 +0100 From: Qais Yousef To: Valentin Schneider Cc: Ingo Molnar , Peter Zijlstra , Doug Anderson , Jonathan Corbet , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Luis Chamberlain , Kees Cook , Iurii Zaikin , Quentin Perret , Patrick Bellasi , Pavan Kondeti , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v6 1/2] sched/uclamp: Add a new sysctl to control RT default boost value Message-ID: <20200708130831.4oaukv65hbano3j7@e107158-lin> References: <20200706142839.26629-1-qais.yousef@arm.com> <20200706142839.26629-2-qais.yousef@arm.com> <20200707093447.4t6eqjy4fkt747fo@e107158-lin.cambridge.arm.com> <20200707123640.lahojmq2s4byhkhl@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/20 12:05, Valentin Schneider wrote: > > AFAIU rcu_read_lock() is light weight. So having the protection applied is more > > robust against future changes. > > So I think the one thing you win by having this dance with mb's and the > suggested handling of the task list is that you do not need any > rcu_synchronize() anymore. Both approaches have merit, it's just that the > way I understood the suggestion to add sched_post_fork() was to simplify > the ordering of the update with the aforementioned scheme. The synchronize_rcu() is not for sched_post_fork(). It is to deal with the preemption problem. > > > > >> > >> sched_post_fork() being preempted out is a bit more annoying, but what > >> prevents us from making that bit preempt-disabled? > > > > preempt_disable() is not friendly to RT and heavy handed approach IMO. > > > > True, but this is both an infrequent and slow sysctl path, so I don't think > RT would care much. There's an easy answer for that. But first I'm not sure what problem are we discussing here. What is the problem with rcu? And how is preempt_disable() fixes it or improves on it? Thanks -- Qais Yousef