From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56629C47082 for ; Wed, 26 May 2021 16:13:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0EF46613DC for ; Wed, 26 May 2021 16:13:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EF46613DC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DaW1exEGmNQMurl1c6juqx7mM+7Nh+Q1dt3/TtXXpC8=; b=T13+rr9u6bhV9G O6u5ecdBTi9vKhwNnZ1GS2ZeMKR2htUXUlJH4gZZlSSJYRurTGtsqr2HJohtYEOPrBDR5Yc6X4UTl vUh6LtcRF5Zl2Kc4018e70c0/m3iSEBwVI9BrNxV/Pd5Do6l126/aVVnSlbsQyLs1Zk20K1dkDs1Y n7ds8kNBBwPxlfDogcIdu0TUY8s+S/a1DLp6LAw/NhOodYSjVd/cNkFL0lB/kQKkTjZ8MRc2MKSSy LpBhmtAvBi3RrF6CWQHHYU0kXhaNqJmc95XwDrncdkO07UPsqzznoLmpwjGzi7RuTg7bQ91MieZh0 /TMwQZakmaFgMdDOGO8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llw87-00FdJn-PN; Wed, 26 May 2021 16:11:36 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llv3C-00FA9O-NW for linux-arm-kernel@bombadil.infradead.org; Wed, 26 May 2021 15:02:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=EzQNpucbZRhOS6VlKl4EW+/nNhgUz3SdWpD1Xj7cd80=; b=axGXUB0m7TjyPDI5WGPN9TcpCB zsGBpK64dDZcj69e9wqfhe30Acmr+x/5LnNB9oxaeIdSCHj77dwxc3oCr632D8hKQqp0gCy3Il9sL DPsyMsrhFpOkDnTNiXAu+axxTKcOm9JoeF0xPQJ1IAKzm5UScHjBKpDojD5Oou4SCVo4Bik/6D1bV 4VsnHPQQWJciqrE5rc6J5bMZFz2IO1bOvloALOtrUFcrReiCddf98AgL5UxK9vltxqDT94Ew1UcN8 8VW7kS5GUiC2BfsWgUhRWKB+DstRhsAlRbKiD3OJ3Ovq7mJwPhkhXZS3UmISIURKXFto9T4shbNhc iZLrrCgQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1llv31-000g9F-1s; Wed, 26 May 2021 15:02:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E27C9300242; Wed, 26 May 2021 17:02:20 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C4714200D3A72; Wed, 26 May 2021 17:02:20 +0200 (CEST) Date: Wed, 26 May 2021 17:02:20 +0200 From: Peter Zijlstra To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Morten Rasmussen , Qais Yousef , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , Dietmar Eggemann , Daniel Bristot de Oliveira , kernel-team@android.com, Li Zefan Subject: Re: [PATCH v7 08/22] cpuset: Don't use the cpu_possible_mask as a last resort for cgroup v1 Message-ID: References: <20210525151432.16875-1-will@kernel.org> <20210525151432.16875-9-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210525151432.16875-9-will@kernel.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 25, 2021 at 04:14:18PM +0100, Will Deacon wrote: > void cpuset_cpus_allowed_fallback(struct task_struct *tsk) > { > + const struct cpumask *cs_mask; > + const struct cpumask *possible_mask = task_cpu_possible_mask(tsk); > + > rcu_read_lock(); > + cs_mask = task_cs(tsk)->cpus_allowed; > + > + if (!is_in_v2_mode() || !cpumask_subset(cs_mask, possible_mask)) > + goto unlock; /* select_fallback_rq will try harder */ > + > + do_set_cpus_allowed(tsk, cs_mask); > +unlock: if (is_in_v2_mode() && cpumask_subset(cs_mask, possible_mask)) do_set_cpus_allowed(tsk, cs_mask); perhaps? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel