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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 248AFC77B75 for ; Wed, 3 May 2023 17:46:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbjECRqe (ORCPT ); Wed, 3 May 2023 13:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjECRqc (ORCPT ); Wed, 3 May 2023 13:46:32 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1D36EB8 for ; Wed, 3 May 2023 10:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683135933; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i+1daImuCgAFQ62zz1n0R8N9/43jAwavxjwtDs1QPpw=; b=RmqhTRwRssJDm6ACjAxpMJdeC2CCHnmfEcusp3P16Qhh7BxtSm6JMRgPkvYyUDQGpoUZmF UUws5aG0JYHenR6DFW+tuLYjyVLSg0DSs4sUnOig+++W2xZv9K7tC90diLaRCl6BYaeEEO XxPvruQaS48O2wQM/Mh/Dx7EihWHN3E= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-7jHQmRNDOZ-W3uIAMepP2g-1; Wed, 03 May 2023 13:45:28 -0400 X-MC-Unique: 7jHQmRNDOZ-W3uIAMepP2g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2BCEA293248C; Wed, 3 May 2023 17:45:27 +0000 (UTC) Received: from [10.22.17.228] (unknown [10.22.17.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 117331121331; Wed, 3 May 2023 17:45:25 +0000 (UTC) Message-ID: <5a64fdd5-ee1a-7609-99a9-a8d1e282e393@redhat.com> Date: Wed, 3 May 2023 13:45:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 5/6] sched/deadline: Create DL BW alloc, free & check overflow interface Content-Language: en-US To: Juri Lelli , Peter Zijlstra , Ingo Molnar , Qais Yousef , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo Cc: Dietmar Eggemann , Steven Rostedt , linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, cgroups@vger.kernel.org, Vincent Guittot , Wei Wang , Rick Yiu , Quentin Perret , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sudeep Holla References: <20230503072228.115707-1-juri.lelli@redhat.com> <20230503072228.115707-6-juri.lelli@redhat.com> From: Waiman Long In-Reply-To: <20230503072228.115707-6-juri.lelli@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/3/23 03:22, 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 Typo: "rater" => "rather". Cheers, Longman