Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6851238ybi; Wed, 5 Jun 2019 07:22:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7HCdDem3r4pKmDydgCn9fr5Dz0Q2HYGUvswozYE4XkSkt4SsZ8QZv8Vs8XUkc2Zh7yFXx X-Received: by 2002:a62:4e48:: with SMTP id c69mr24131941pfb.176.1559744564413; Wed, 05 Jun 2019 07:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559744564; cv=none; d=google.com; s=arc-20160816; b=hum1RbAPD2dQGhcMmxhAo6t0LlO6JErZMl8TPeF5H+9LlCp8p9O3X1a7UEuBLmTvnU 5eqLPGBfdYcVtF5+laKV+8u2ar2+qHrZPRRYO64qSn+4XfsZ8RxDTWJ36amphN55Urhi TnopW5CnayUkCMPMExHSQjLZaoUimmbkiYnOY3DtBsiU7kmzzEfUgKxMuviRjw6aCrp7 gaqVicwpFg4oMeNCmfDFw41qiWXnG2hhn7CFZwBqCpK4OTgTAt/7ptX/1fAiEBc5qPau awpqfuZy56d8BemO/98GNbT0/g0R2K1bgKm3i1E1Jsm/Lr8pITcNxkMcMEwlWCImJjo4 CkyQ== 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=+aUdG9Ba/qwgoLVDLPqdN5Nhur737MSALU7vMQ2ksDQ=; b=myRC22reqjvbTAn10BALMkDJp6lFEQWTEuYFmRscXJW8X6oHAdcNrZdML+kPPJC6KH 2TOq2sJe8qB9TZKuCFn8Y67iCe6tx8mc8BkD9VO2f+UucwqGuDxclq5ECI2WG9K1QGqB HYAwiLZC5flUVlX0JNajDzayUZnyBJA7HOldM8ZnaciYtT10cAZib8w6E28GxgzdUoPR UrbbKiQik2uJTA4J7ikVi3d3m1gWbYbpsxV/UtZfyRMhayexZRg7IxKt4BBkiXCuQcWb jW41Ksx3x7hjmuz/pamJ8zDfQq3viiXQwzN52RsfLz/Jv3caJMcgoFtaW1BBz/itI9Pt jtlw== 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 32si27739718pld.6.2019.06.05.07.22.27; Wed, 05 Jun 2019 07:22:44 -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 S1728369AbfFEOUH (ORCPT + 99 others); Wed, 5 Jun 2019 10:20:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:37964 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727893AbfFEOUG (ORCPT ); Wed, 5 Jun 2019 10:20:06 -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 18EDEAF03; Wed, 5 Jun 2019 14:20:05 +0000 (UTC) Date: Wed, 5 Jun 2019 16:20:03 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, lizefan@huawei.com, tj@kernel.org, bristot@redhat.com, luca.abeni@santannapisa.it, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/core: Fix cpu controller for !RT_GROUP_SCHED Message-ID: <20190605142003.GD4255@blackbody.suse.cz> References: <20190605114935.7683-1-juri.lelli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605114935.7683-1-juri.lelli@redhat.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 On Wed, Jun 05, 2019 at 01:49:35PM +0200, Juri Lelli wrote: > Existing code comes with a comment saying the "we don't support RT-tasks > being in separate groups". I'm also inclined to this check not being completely correct. This guard also prevents enabling cpu controller on unified hierarchy with !CONFIG_RT_GROUP_SCHED. (If there are any kernel RT threads in root cgroup, they can't be migrated to the newly create cpu controller's root in cgroup_update_dfl_csses().) I considered relaxing the check to non-root cgroups only, however, as your example shows, it doesn't prevent reaching the avoided state by other paths. I'm not that familiar with RT sched to tell whether RT-priority tasks in different task_groups break any assumptions. Michal