Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp642065ybi; Wed, 19 Jun 2019 05:34:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhBPRcUqOT1Mm8BMSTiWf0+VzqaBrHeUI3MCHL3lDdca61Fe8p4/U2OP6OrW9I44EfpTN8 X-Received: by 2002:a63:511b:: with SMTP id f27mr7462345pgb.135.1560947667093; Wed, 19 Jun 2019 05:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560947667; cv=none; d=google.com; s=arc-20160816; b=tw8e+MAq4u9PWiUoh/RLW8IS+bliLeksMYJdTiYANGiHr1Nxde4nxV1gsLV/9j16YI A4K3ZKpcbfhkTwFHw0zDly9ckZbKtMRetDT661eSUPtn50Z44yKd7CadwVKeP6LmAODs t61SbDoKdAB0jj7Huu6IlHS+yfTr7+1jtKKcGimC/Z8xbkARhvugXuHiaJkwle0kXklx sJohl88sn0CLl5h0uR6UvOiBaronLA50NFjXowDNy2v+iDnhT6+dX0c8v1o3t8o0LMz0 Oq4XBZuyen5iH/OJhoiOREzCnHmOrp1xudUJ5Vl+zQXKup8V8GZmZT9PpgK2Ufc9lnbJ gCeg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zkomWHfm2nE4Ls9LrFCC/lbq6EDt2hSMOozA/jG6M0g=; b=pFNY7dtCVQHF2DW42tbK+Cj8GrA2x8NU52egUGxy2jrIm3iBWZaO7n3Zr8qf+/qDyL FQp8q1vP6ai4PGNgPCsVP9RVOrjPbj5oEjBeg3HFTGSLojF2gFY9IPtaQVIv/vejJMWs szMSduV9KONHv/eEnGBgrL/9J5Btg3ZopCB8CLwcoNpjAvO6b23QJmX4m7p6fSzUarvF rVZthaeiddO51Iye2KU/KZA3U5Jf1yE3zCpxjCUFXpQ7+RApviVntGEPyuV2t4UH2Imz xK/HAUDoHvivhytVo2XyUhX5kWSm66+THcVQxW3S7htclFr18SzsAaRKtAqnQRfHyS3w jKHA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si3027399pgv.398.2019.06.19.05.34.11; Wed, 19 Jun 2019 05:34:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731855AbfFSMeK (ORCPT + 99 others); Wed, 19 Jun 2019 08:34:10 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42533 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731653AbfFSMeK (ORCPT ); Wed, 19 Jun 2019 08:34:10 -0400 Received: by mail-wr1-f67.google.com with SMTP id x17so3186250wrl.9 for ; Wed, 19 Jun 2019 05:34:08 -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:content-transfer-encoding :in-reply-to:user-agent; bh=zkomWHfm2nE4Ls9LrFCC/lbq6EDt2hSMOozA/jG6M0g=; b=fiGw7O31FhJVxqU+t9pw/RP6J9niRaueQ7iIhmJEFeu+iKM4T96BkbHSu8tM+KFgvB 0fPrC+3ya+pxibmHpcr7DJ1vnjGSd/aLz34k9NJuhQ0pE1IpKBvza98umQu+gPkUJrRg 3ghClTEwjP5BNK656jxsJPnQc2TCU0jvem3fhg3cYdY7sOYSkRgeQv5P9S/p73X17n9Q 1vj/0U6BejnNBh3YPv/AjFLXRKPHQ1JXygHV1r/Uh8u0J6sj8LGDDEOSt/blcsikIuyb 7M3OGPAhcJ6xpTm2Qkr+MH7vdiisVsW24tMns/3khP+TPom5T/Dl++Ftli4rcsgGWt0D PtQQ== X-Gm-Message-State: APjAAAUH1S2Yow9n3vOqjxJ590BWySXK8w3JscXOcaJkxFnof4/fsMn1 4yoMkbetKIXrL5ApJCaVF8XZ2w== X-Received: by 2002:a5d:488b:: with SMTP id g11mr9807590wrq.72.1560947648011; Wed, 19 Jun 2019 05:34:08 -0700 (PDT) Received: from localhost.localdomain ([151.29.165.245]) by smtp.gmail.com with ESMTPSA id 72sm13469223wrk.22.2019.06.19.05.34.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2019 05:34:07 -0700 (PDT) Date: Wed, 19 Jun 2019 14:34:05 +0200 From: Juri Lelli To: Michal =?iso-8859-1?Q?Koutn=FD?= 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: <20190619123405.GN26005@localhost.localdomain> References: <20190605114935.7683-1-juri.lelli@redhat.com> <20190605142003.GD4255@blackbody.suse.cz> <20190619092904.GB28937@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190619092904.GB28937@blackbody.suse.cz> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 19/06/19 11:29, Michal Koutn? wrote: > On Wed, Jun 05, 2019 at 04:20:03PM +0200, Michal Koutn? wrote: > > 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. > So I had another look and the check is bogus. > > The RT sched with !CONFIG_RT_GROUP_SCHED works only with the struct > rt_rq embedded in the generic struct rq -- regardless of the task's > membership in the cpu controller hierarchy. Yep. > Perhaps, the commit message may mention this also prevents enabling cpu > controller on unified hierarchy (if there are any (kernel) RT tasks to > migrate). Sure. Can add such a comment. > Reviewed-by: Michal Koutn? Thanks! Peter? Best, Juri