From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juri Lelli Subject: Re: [PATCH v2 5/6] sched/deadline: Create DL BW alloc, free & check overflow interface Date: Thu, 4 May 2023 10:15:17 +0200 Message-ID: References: <20230503072228.115707-1-juri.lelli@redhat.com> <20230503072228.115707-6-juri.lelli@redhat.com> <20230504062359.GE1734100@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683188125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QZvLxR1Wp5CoC9hbAyjph+R2Ym2/yRjyoOOmO1WU7GE=; b=JzhjjbT+346GYQMeSrWWmpRyKCP6phXefmGHglHamBkfie4bujH9cJrPPYiy9OhhShFrhg EIpJbB7yilNvkcwKyIijykZ/VhjFk8elqTSZqdcMi05JqwVOrkF5hMPkSaiSy0ZlWgkf2J aBEIWx4GZIxA9wRGAHo1eJVUb6f0Cz8= Content-Disposition: inline In-Reply-To: <20230504062359.GE1734100-Nxj+rRp3nVydTX5a5knrm8zTDFooKrT+cvkQGrU6aU0@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Peter Zijlstra Cc: Ingo Molnar , Qais Yousef , Waiman Long , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo , Dietmar Eggemann , Steven Rostedt , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, luca.abeni-5rdYK369eBLQB0XuIGIEkQ@public.gmane.org, claudio-YOzL5CV4y4YG1A2ADO40+w@public.gmane.org, tommaso.cucinotta-5rdYK369eBLQB0XuIGIEkQ@public.gmane.org, bristot-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Vincent Guittot , Wei Wang , Rick Yiu , Quentin Perret , Heiko Carstens , Vasily Gorbik , Alexander Gordeev On 04/05/23 08:23, Peter Zijlstra wrote: > On Wed, May 03, 2023 at 09:22:27AM +0200, Juri Lelli wrote: > > From: Dietmar Eggemann > > > > Rework the existing dl_cpu_busy() interface which offers DL BW overflow > > checking and per-task DL BW allocation. > > > > Add dl_bw_free() as an interface to be able to free DL BW. > > It will be used to allow freeing of the DL BW request done during > > cpuset_can_attach() in case multiple controllers are attached to the > > cgroup next to the cpuset controller and one of the non-cpuset > > can_attach() fails. > > > > dl_bw_alloc() (and dl_bw_free()) now take a `u64 dl_bw` parameter > > instead of `struct task_struct *p` used in dl_cpu_busy(). This allows > > to allocate DL BW for a set of tasks too rater than only for a single > > task. > > > > Changlog fails the 'why' test. > Dietmar, if you could please add (or rework) the 'why' as a reply to this email, I can fold in v3. Thanks!