Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5946963ybi; Wed, 12 Jun 2019 11:10:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKuU5Sitf2bVDfZTRfTCIl7i/WsEnvt3x+RZ9fQlssbl2HrAthYksWszlnp5g/MjYKs4if X-Received: by 2002:a17:90a:a410:: with SMTP id y16mr518798pjp.62.1560363033752; Wed, 12 Jun 2019 11:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560363033; cv=none; d=google.com; s=arc-20160816; b=UGepfNxvQ0UwNB1HzHKZgiHP2K9mCcVQvUfzxanrGqIkC1sZ/LchQP1WJR9eqtqpsM JHM0G12YoxyIP+0gcKsvcTZwqb9O+N6sksIAX9oAdNnTYOEnVLTZ2wKTx4hRW0t7i/Fe sHbrGwiWJmXMBvdiVptka5qh/Jn73K39XuqzGBuFmaNAFW+ngVjdx1vA6ivyl/rWcIQo vpzKjc3YH0Ruf2JJQAKcZ3d/lD5orUDm/sxxCU57jt594cuFE5/WkGDqZeBqnXL7pSCn s4cvTpY2hNePhDK+lw0FzGbRFNTNt+AxH1Umi3+9M2uS9q04uGOrXSZO+1FBquV8vM7P IJ7g== 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:dkim-signature; bh=s/cPizosD0yo9hCc0bnbtGXeZtAcZupgNDhvNsY19l8=; b=wJE+y8oQ5An7Cw5pKhbRTK8t9MQfVRLdRGVGXmycAALNU6V5kEMDXHaYO/DViuHkfI TzxgJKyGnSjRhZUKZifBIGntKqUeZG8pDQnAHALyM5rRMrDPddRqBs3d+KgN3E6h0+bD 6LWUhl2iJJIWkthLhoQ4wdjQDfnUOoExcc81G5Cn0wqrIzk10o7wr7Zw7TUrB1olw963 lttNGc5XXEf1VcI77A6XsDyE1gciCrbTFuqY6lO4SxxRi9bkbgDNUGqvwYX/wbDtZP2p dtESAyuXweuEzK75kqUkdoAbDFnSQfUO1MEv17Pby5u4ZladEeWPMgD4Hv4PJ5tMrLR4 6vTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WwCSS6HP; 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 q8si376784pfc.155.2019.06.12.11.10.19; Wed, 12 Jun 2019 11:10:33 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WwCSS6HP; 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 S1729016AbfFLRqb (ORCPT + 99 others); Wed, 12 Jun 2019 13:46:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40134 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfFLRqb (ORCPT ); Wed, 12 Jun 2019 13:46:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s/cPizosD0yo9hCc0bnbtGXeZtAcZupgNDhvNsY19l8=; b=WwCSS6HPwhqRa8GP/pqPBaFzP GrvimiXjmrb2Lac/YuJURT5NEkTZ03tllxmZf4raxtLhj8xRzZpA1nyAi20YMkh9UtzIOSXqUwbaD 0BR7cC+o/zli58tv/fpRUXm2OVrbUwH/FYsmRNVzEpFcvERHHW2fDKvlb4bDkK0wlj0y0NUsd2qVZ 3JysHIJo4FFUfwPT8LTOXD+nG0luamwCYvjGn/kNL2+UTt0EWdKWBa4wSQAWIfqjKIpjtwNr2Lh14 88uqNEqXa1LNnW3eOP8p1dtHsQPLQ6Z3uJitSTklS2//XqtOvvjlDNUBvXXktfJT1Emo53PWq2got rHLTovsbA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hb7KI-0000Om-U3; Wed, 12 Jun 2019 17:46:23 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0A68B209B9C09; Wed, 12 Jun 2019 19:39:31 +0200 (CEST) Date: Wed, 12 Jun 2019 19:39:31 +0200 From: Peter Zijlstra To: Tejun Heo Cc: Joel Savitz , linux-kernel@vger.kernel.org, Li Zefan , Phil Auld , Waiman Long , Michal =?iso-8859-1?Q?Koutn=FD?= , Ingo Molnar , cgroups@vger.kernel.org Subject: Re: [RESEND PATCH v3] cpuset: restore sanity to cpuset_cpus_allowed_fallback() Message-ID: <20190612173930.GL3402@hirez.programming.kicks-ass.net> References: <1560354648-23632-1-git-send-email-jsavitz@redhat.com> <20190612160244.GP3341036@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612160244.GP3341036@devbig004.ftw2.facebook.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 12, 2019 at 09:02:44AM -0700, Tejun Heo wrote: > On Wed, Jun 12, 2019 at 11:50:48AM -0400, Joel Savitz wrote: > > In the case that a process is constrained by taskset(1) (i.e. > > sched_setaffinity(2)) to a subset of available cpus, and all of those are > > subsequently offlined, the scheduler will set tsk->cpus_allowed to > > the current value of task_cs(tsk)->effective_cpus. > > > > This is done via a call to do_set_cpus_allowed() in the context of > > cpuset_cpus_allowed_fallback() made by the scheduler when this case is > > detected. This is the only call made to cpuset_cpus_allowed_fallback() > > in the latest mainline kernel. > > > > However, this is not sane behavior. > > While not perfect (we'll need to stop updating task's cpumask from > cpuset to make), this is still a signifcant improvement. > > Acked-by: Tejun Heo > > If there's no objection, I'll route it through the cgroup tree. Acked-by: Peter Zijlstra (Intel)