Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3643688ybi; Mon, 29 Jul 2019 10:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzimLzI6hRSkc9Sy4UIMZJMyJrKdj+VgRARk6BFjkQCxj5/Bk4IVv3zsWx09XycFSwJCVH8 X-Received: by 2002:aa7:9819:: with SMTP id e25mr36517238pfl.47.1564419699820; Mon, 29 Jul 2019 10:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564419699; cv=none; d=google.com; s=arc-20160816; b=lOvvSQ9kGa8US6+r+OKnhakOV40oQZpc0ySKkgYf9h+Z/wAr7ZtHnlaMNiytdbooH1 KoUqFeXeIoJq4IJRNzO6NvuXVIASupMjvevfWj1JDb41EBh0WAciIhGNCnctiw6MQTvs erSNUdNPfSMKtNxT0AdcYQqqqQASKM3HlE7aJg+TS01Qh/B78+mpH+qcKTjnUn8F+yy1 7MzDANv+BnuXUn5xeIK/A8yljy8P1kQOuugXsdpmjDaJ9MeC1311kLKZyTWEhZErmvAj k1wtQKqNU7aGhXd5+pRnNqnXaY5eDbvOhVymbtWCJzZ0Lacr0l2i65Onw1W7WI1JIGuA 6vpA== 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=CdO+v4oZa9EnLCDZTQ85n/ETA6xyqhDMpjwT2xbLmSc=; b=RvRRpMyeMJMKCzzqdcDWedG1xugf0gfadtUboRqft78ujRmeyKIFIQTheYSEN/C5yS XYHjFaOlFYd2SJdgWqCseGL0uN+/HxA5DKJ74R+zk0WiBlazYkVcCfZFZH9ld15dn/Mg AGh8d5sbJ5+Bx8HwCRii1OXRFtYulXGer2Azu29Q7/51eVbR7CSy4Olbyuca0Hmq5mg1 b6srjMgB6ur7xQMqU99DlT+kLJEerIUy7MTeqk2xjtP54837CzU2yEmix/abx0xyLl2h YrqgkuT47y03NUMmsX2ZdhFwI44YRMcm+WvKtRsEhpo2KuuC9Q2HF7tG3xZa5D/UwPIL Fm1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=k9Tvz2zR; 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 s11si26240147pgg.200.2019.07.29.10.01.24; Mon, 29 Jul 2019 10:01:39 -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=merlin.20170209 header.b=k9Tvz2zR; 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 S1728842AbfG2QsE (ORCPT + 99 others); Mon, 29 Jul 2019 12:48:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48632 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbfG2QsE (ORCPT ); Mon, 29 Jul 2019 12:48:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=CdO+v4oZa9EnLCDZTQ85n/ETA6xyqhDMpjwT2xbLmSc=; b=k9Tvz2zRatSYev2i6zfTRqEix l781VEZOt+0DIkqBi9YQpJdYaI0hrv47KEUUPj+i6JvAansBYoAf5NNjA/s7kroc3OEsxRQVLO5Hp qReCDt27Aq/iIw7P/lEaXd3QlVqbB4t+ur0LdTOGrOWTMa+9BZrEiCqlC+i2DCTGGXTLKWBxuJdML BO9m4coWzwx7urw1TDVphaTOazhYENrLjOSWXZsxYv6X9Mic11mAW0/Kbn8JNW6YnEuYQCdCHW09Y +AdyNN4axtYb1MMSTfNW1FfDY6YCVVdU+f4VbDVKahyotsj87025ZgZTC5cS4uLzfQ5G8DtaiwLyf 7UIlOZCfg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hs8oY-0004Fa-5W; Mon, 29 Jul 2019 16:47:58 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D64FC20C7FF00; Mon, 29 Jul 2019 18:47:55 +0200 (CEST) Date: Mon, 29 Jul 2019 18:47:55 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Ingo Molnar , Juri Lelli , Luca Abeni , Daniel Bristot de Oliveira , Valentin Schneider , Qais Yousef , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] sched/deadline: Use __sub_running_bw() throughout dl_change_utilization() Message-ID: <20190729164755.GM31398@hirez.programming.kicks-ass.net> References: <20190726082756.5525-1-dietmar.eggemann@arm.com> <20190726082756.5525-4-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726082756.5525-4-dietmar.eggemann@arm.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 Fri, Jul 26, 2019 at 09:27:54AM +0100, Dietmar Eggemann wrote: > dl_change_utilization() has a BUG_ON() to check that no schedutil > kthread (sugov) is entering this function. So instead of calling > sub_running_bw() which checks for the special entity related to a > sugov thread, call the underlying function __sub_running_bw(). > > Signed-off-by: Dietmar Eggemann > --- > kernel/sched/deadline.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > index 99d4c24a8637..1fa005f79307 100644 > --- a/kernel/sched/deadline.c > +++ b/kernel/sched/deadline.c > @@ -164,7 +164,7 @@ void dl_change_utilization(struct task_struct *p, u64 new_bw) > > rq = task_rq(p); > if (p->dl.dl_non_contending) { > - sub_running_bw(&p->dl, &rq->dl); > + __sub_running_bw(p->dl.dl_bw, &rq->dl); > p->dl.dl_non_contending = 0; > /* > * If the timer handler is currently running and the I'm confused; the only called of dl_change_utilization() is sched_dl_overflow(), and that already checks FLAG_SUGOV and exits before calling. So how can this matter?