Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3901604pxu; Mon, 12 Oct 2020 04:30:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf+z06lZ0NBbl4JJabShz7GXiiBNE95CdKvUjsxtJflEyZCE7Q/v289tectZJKhAT7ZscH X-Received: by 2002:a50:ab5b:: with SMTP id t27mr13588233edc.281.1602502258766; Mon, 12 Oct 2020 04:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602502258; cv=none; d=google.com; s=arc-20160816; b=nZAb9sn0CQSeb03WIhcje6lqV2V075bsE94OM0vIJlHXCbJJcQkmkuMgmVASTWmZKH eKqA7YQpNznKhdbbh8gDQvCpE+wmYy25nvUfToEw+KnY2WsEeeBQuHNTLDo+xxwpcX/d jrhdawLe60HUyIqq0y/At3pXWpnNfO3VKuLRKa600tJG2WU4ZltopNYwQkdrgHnCpTrL DfYjT6MM/bGs6ZwhPOXNa/c1qO82uhg5TrqKWUMa1YOxlzqKnhM17DR3DBmwNfFWqg/n pGFQ/0f7VzqffEzxJ0u5PLzKL3iRbrB9PX5FH3gaMhTyb6dakOpm9TufxFiM2ydOVOPd Tzfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PpONMJX6Ovvx5TzUoS9zwvJeYk6DHjL244IX/UZUnvo=; b=LHZYEn60sbF2BHGgWF3nacwMyZILw0CbFX33SjZtyZC2dV7OJmoTgoFE7qBA0lO4rZ LAjWqmkcJHCtvXFbICzIYwQ8GTXLvMaADnceCEwRT5YfUVSMd4HWV5Wa8AN2kX34vpxP QNS2grNj3n0gF8m86GgCd1Ysovpt4n48XCauz8oITAkIH7ne9e+1sQOmm4/sre1L6Lbg lSj4MB1v4J/XucSQEt/CAqMWHFoiJpWA5UuK5yDPbc3xmNybOc/oWEX6cVk3HiBA74Kr x9P1ZQ8JKemThEi5VkkLpdfINlTzhsKYQspE3lrNEEH+cbQTwRV/rK9mPYZvMVZlui/7 fITQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kArmmlsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si12062360edn.390.2020.10.12.04.30.35; Mon, 12 Oct 2020 04:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kArmmlsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388192AbgJLL2t (ORCPT + 99 others); Mon, 12 Oct 2020 07:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387617AbgJLL2r (ORCPT ); Mon, 12 Oct 2020 07:28:47 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD601C0613CE for ; Mon, 12 Oct 2020 04:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=PpONMJX6Ovvx5TzUoS9zwvJeYk6DHjL244IX/UZUnvo=; b=kArmmlsFCP43044VNkMy/TAPYD FdQqfQJTt+3deZpUMYsO8Gnq4H1NMaI7sZ/Cdj/71qQYw2vMCofO1Dfrd8R9Fu7EkJeLCcHm8S92S fAnWDfIPWQ/Vh5PsYg2RXTi5LKwgPVdus9ZKpvQG+riykwJZnW0cntnSuOlo28mW8v/WyHNHl7NKJ BPjaYMmyMLTQ1z/HPsVJB1yxCk3yeciR3w2InU5/SJ5NASqMW42lJpdtGEtRt/6k1Q1+0Xh0jRGf9 /1+MQZ+qlpqJkFsUHxVI3OjqmGbHXJbw2eEsV0EN7VYGd9nN2b/Dg1BcY1vdk9JR0E+R6dEA7PZRc OEJRJBbg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRw0A-0008MU-JQ; Mon, 12 Oct 2020 11:28:26 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C731A304BAE; Mon, 12 Oct 2020 13:28:24 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id ADA4B20A2950E; Mon, 12 Oct 2020 13:28:24 +0200 (CEST) Date: Mon, 12 Oct 2020 13:28:24 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, qais.yousef@arm.com, swood@redhat.com, valentin.schneider@arm.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vincent.donnefort@arm.com, tj@kernel.org Subject: Re: [PATCH -v2 15/17] sched: Fix migrate_disable() vs rt/dl balancing Message-ID: <20201012112824.GU2628@hirez.programming.kicks-ass.net> References: <20201005145717.346020688@infradead.org> <20201005150922.458081448@infradead.org> <54bebe28-1d6d-5f71-da57-deb2eee111d3@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54bebe28-1d6d-5f71-da57-deb2eee111d3@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 11:56:09AM +0200, Dietmar Eggemann wrote: > On 05/10/2020 16:57, Peter Zijlstra wrote: > > [...] > > > --- a/kernel/sched/rt.c > > +++ b/kernel/sched/rt.c > > @@ -1859,7 +1859,7 @@ static struct task_struct *pick_next_pus > > * running task can migrate over to a CPU that is running a task > > * of lesser priority. > > */ > > -static int push_rt_task(struct rq *rq) > > +static int push_rt_task(struct rq *rq, bool pull) > > { > > struct task_struct *next_task; > > struct rq *lowest_rq; > > @@ -1873,6 +1873,34 @@ static int push_rt_task(struct rq *rq) > > return 0; > > > > retry: > > + if (is_migration_disabled(next_task)) { > > + struct task_struct *push_task = NULL; > > + int cpu; > > + > > + if (!pull || rq->push_busy) > > + return 0; > > Shouldn't there be the same functionality in push_dl_task(), i.e. > returning 0 earlier for a task with migration_disabled? No, deadline didn't implement HAVE_RT_PUSH_IPI.