From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813AbbIQOxQ (ORCPT ); Thu, 17 Sep 2015 10:53:16 -0400 Received: from mail-yk0-f182.google.com ([209.85.160.182]:35484 "EHLO mail-yk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbbIQOxO (ORCPT ); Thu, 17 Sep 2015 10:53:14 -0400 Date: Thu, 17 Sep 2015 10:53:09 -0400 From: Tejun Heo To: Peter Zijlstra Cc: Paul Turner , Ingo Molnar , Johannes Weiner , lizefan@huawei.com, cgroups , LKML , kernel-team , Linus Torvalds , Andrew Morton Subject: Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy Message-ID: <20150917145309.GA7205@mtj.duckdns.org> References: <20150822182916.GE20768@mtj.duckdns.org> <20150824213600.GK28944@mtj.duckdns.org> <20150824221935.GN28944@mtj.duckdns.org> <20150825210234.GE26785@mtj.duckdns.org> <20150912144007.GA8942@htj.duckdns.org> <20150917143527.GJ3604@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150917143527.GJ3604@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, Sep 17, 2015 at 04:35:27PM +0200, Peter Zijlstra wrote: > On Sat, Sep 12, 2015 at 10:40:07AM -0400, Tejun Heo wrote: > > So, one of the problems is that the kernel can't have tasks w/o > > runnable CPUs, so we have to some workaround when, for whatever > > reason, a task ends up with no CPU that it can run on. > > No, just refuse that configuration. Well, you've been saying that but that's not our behavior on cpu hotunplug either and it applies the same. If we reject cpu hotunplugs while tasks are affined to it, we can do the same in cpuset too. > > The kernel does not update all CPU affinity masks when a CPU goes down > > or comes up. > > I'd be happy to fail a CPU down for user tasks where this is the last > runnable CPU of. So, yeah, we need to keep these things consistent across global and cgroup cases. Thanks. -- tejun