Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7138331ybh; Thu, 8 Aug 2019 10:44:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqydjs6Bfd5nBXx+/HmEk9rzblugykwt+tc4TYUghge5C4kO2My2mGrW4INnhbXM1cQJ/aSw X-Received: by 2002:a65:62d7:: with SMTP id m23mr13783633pgv.358.1565286285723; Thu, 08 Aug 2019 10:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565286285; cv=none; d=google.com; s=arc-20160816; b=t4Vi6g5RK5pLNgDM2yJVGXFFIcWyI9AuaMuQqfInh5X/YXh4sPBSQQ7avuu3P+oJZA YXQ2XevMWLV15LVqcL2qeMLKWKsg9VHHLq5fderw0HzfILyYIyLjund+6Z0nvyx612yo MJqYn3EwExUGl8xGa5W/PA1CvHGJK4GajcrIHNo4hi2aOSAHcVNjcgS+BTaG2Q9Ea1le gifQi2S5Fu1BQvi/c0aZbidJQfSZI8wW12LUK6AY+CUDBx5rDFxc2i8CSfdS7P6hQLiP eCA5XDhiVdSeKDF/iRjs7iJ1B5APAYB1Fomfw3A+Vd5TOC/Xh1FX2bFw39u8P5SasMCM jYRA== 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=EoQQGiHjrX3aL3EyiRXp/RinNcVlKEoZwPzJgit9NOI=; b=RT9NiujQRkOKV6MF/l15588zoIoKcx148Ij08xQrbKePbcT0xu8yTCrnQPe4k3qdtV tRdbXt/DqzlZ88B3NulrMeP8j5y1jgDvuNjbttcDv3eSOf9lIGy/O7uGXHRW++eW8/ms mRLn0FVHJZnJbgf49ddhfW4LD5nKVHCuhw1qQ1p2e6b65cwkXB1TODUr7vgQbeDSIkxw 53qfHqSl6lz9ZrNzRwol+18bMA4QS7dLe16KmrMwEfpvtSN1iaT4Rin5+/RveDQ81rbW GRiSyVPCmyiYSmcvdONV66IlbtC3oCXa/dPRaYYxPIY6LhI8/WPGTgyZ7JfXpxWpEzUF ou0w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h35si19153488pgm.183.2019.08.08.10.44.28; Thu, 08 Aug 2019 10:44:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404240AbfHHRQZ (ORCPT + 99 others); Thu, 8 Aug 2019 13:16:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:53980 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404211AbfHHRQY (ORCPT ); Thu, 8 Aug 2019 13:16:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1B717AE48; Thu, 8 Aug 2019 17:16:23 +0000 (UTC) Date: Thu, 8 Aug 2019 19:16:21 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Patrick Bellasi Cc: Alessio Balsini , Dietmar Eggemann , Morten Rasmussen , Quentin Perret , Joel Fernandes , Paul Turner , Steve Muckle , Suren Baghdasaryan , Todd Kjos , Peter Zijlstra , "Rafael J . Wysocki" , Tejun Heo , VincentGuittot , Viresh Kumar , Juri Lelli , Ingo Molnar , cgroups@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v13 2/6] sched/core: uclamp: Propagate parent clamps Message-ID: <20190808171620.GE8617@blackbody.suse.cz> References: <20190802090853.4810-1-patrick.bellasi@arm.com> <20190802090853.4810-3-patrick.bellasi@arm.com> <20190806161153.GA19991@blackbody.suse.cz> <87h86r4rvp.fsf@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M/SuVGWktc5uNpra" Content-Disposition: inline In-Reply-To: <87h86r4rvp.fsf@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --M/SuVGWktc5uNpra Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 08, 2019 at 04:08:10PM +0100, Patrick Bellasi wrote: > Well, if I've got correctly your comment in the previous message, I > would say that at this stage we don't need RCU looks at all. Agreed. > Reason being that cpu_util_update_eff() gets called only from > cpu_uclamp_write() which is from an ongoing write operation on a cgroup > attribute and thus granted to be available. >=20 > We will eventually need to move the RCU look only down the stack when > uclamp_update_active_tasks() gets called to update the RUNNABLE tasks on > a RQ... or perhaps we don't need them since we already get the > task_rq_lock() for each task we visit. Unless you remove css_for_each_descendant_pre() in cpu_util_update_eff(), the rcu_read_lock() cannot go below it. (You'd be RCU-accessing other csses that aren't pinned in the write.) Michal --M/SuVGWktc5uNpra Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl1MWN8ACgkQia1+riC5 qSityw/+JXOBnu4pwW3aN+tZLpsDmQp30H/RvF8UM9xruXiajWC8seiPhBHO/K+d NTgTcMYp4XLXOBDOPR1OvFFLAhgv38xf4R4+kyvg9Z6Yq0jRbOQR6t/foXIOEKV4 OhkPVNl57zVqJoUmTMN5I7ld8AM/dA4RPas3vG9qLrALc1cycaSGmeTNRNzGo3Ga zhNO5KOYipeQoMJJw+KslJgfUctj7YPLKrIDeqt7wRJ6s1rJ8srqlR4QJiqnwvpt Adit3pj4WaOMaYJhX7HuAgEn26kwKkX1Edw9a7BJQny2Zu+CxPrR7AkHPD/eTJyG XHHBBhW3vsKGYkOSpSTavv1Pc+402OkteacYPiP7Hh38UHPEeOnKjAwJFnDRDUKJ mwOw08r0d7tMZKBnMgchOPtpOATD2M9/No9z8TVFoxILfcXpMjEQE6apYVNH2rvl vJkH7wujXxbkWCgL6xopQdyG//G/vGHrPPWJmlhNMvL4Y/KRwj7zEqMvOHC1XQAt WpqQGv5uI6R0WZv31qSIkoXGsfnNx2oz/tR16SpAQUvKRu7en2KwgvzHQGbBfXmV LuNR/iu0/tuOac76MEvdu3dAAyoccmdmYmBZSKm0/+wcqDAa8SKu3CIWhWb8Bu5P +LzuhocAwLPW4ZGSUxuQ+np/D+SyqOJSIhJIlqAmSPtG6TMDGkI= =LPyl -----END PGP SIGNATURE----- --M/SuVGWktc5uNpra--