From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=158.69.130.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796223272; b=JR8NhPFaJJgCzmbnw7xyfRiAC7JL8/5B4jPMPJoDWBzueoZGGzP9L5gXs/5HZ80+gSjF AUAPt+q6ukBGJ1b3hTKDEcnlXOngdNILxkIWOUSbM/Q/+VzZjcST25sINpwRvRT0mrO9H VKLqY9bQB8hbxuTF++77rmx5ViJ4ckLl2/Ec2AQoaKDOYEtp0o/qZwaivNpDg+FrtyRZs E2ZwC06zycitxr/65301b1BSMUZiXGeNKdCv9OrOchEwsmiX5VqCfiDQUWPkmPFX5Swny 7OnGtrcF+LJAgrk5HGGbFNIW5SJ+yk0klgFpOrPQj0VwVh+e58lTInIjUIAqlNjS/1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223272; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=5DFTNa/m5Xasq2NfZ+0ttONcr6IouaP4ep5kzBB4j4o=; b=GwGQV0936JIMznHmS0wjjxIyLQLQabQIKOQk+r8aJUdV0sLnnBbYVoI2gwOzH2mQX4Et R6U0zxj/FLUJRZfj3JPBq45KQkYIXElqm5cqUG4J48XvlfTLUtk5Eta51Q3vFZmKLe5BI WeQGT5HUCCqPnznnouwJ4kylHwD2iXF1vIuHTBeh+8xWl7kZzxg/TJHTITtWhhxg5rU7i 0pXaXK/D+EY4P/isYxgHO54DJiXb95xWDcNrUq8QXeQSa30jmBRm0EwxRW+kbZZ4BDreM cFK459Uiych9FWqmYsQxc/qfoJSXauf8h5J/gw9N8uUVf0blzLNuWiRC08sJQOsLy7g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=xjn8cdxv; arc=none smtp.remote-ip=158.69.130.18 Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42C9D606A322 for ; Wed, 2 Dec 2026 14:54:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42C9D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=xjn8cdxv DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796223270; bh=5DFTNa/m5Xasq2NfZ+0ttONcr6IouaP4ep5kzBB4j4o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xjn8cdxvOt0NGEDa7i4572CEpzTLO1OzLHkbaey5IvuomJTGE+9MVwSSdD+5pauuD R7SsKEVLo58RrJ+tDg/ILQGZ9ztizbBxI/FbSC2NNaEW6R5EhoBFcq8vSgB84MwXl4 iTqhSB2rp6ENeJJhm99wVfkVTmJDOEqzcfyqQuv9pvIl//oX7vt5vFSRPhpiVwOZnZ BkTq9xMKGuQglEMMBF1v73+up5luM3PgOtVmpUd6C7JFbGrhBHf1tupMNTz5c488KC L5VLIQJ0pKMfHSuimT5S77TiX+WH/gDLBucGPDf2oFEF8F+SC4LpnfTbNivi/BQn8S aZ2rIO163wHrg== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jfglB29ZYzYhS; Wed, 02 Dec 2026 09:54:30 -0500 (EST) From: Mathieu Desnoyers To: sashiko-reviews@lists.linux.dev Cc: Mathieu Desnoyers , linux-rt-devel@lists.linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 18/36] sched/deadline: Make a rebuild count a task in the root domain it runs in Date: Wed, 2 Dec 2026 09:54:20 -0500 Message-ID: <20261202145428.341797-3-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > When a rebuild leaves a sleeping task out because its allowed isolated CPUs > went offline, p->dl.dl_bw_gen stays behind dl_bw_gen while > p->dl.dl_bw_cpu still points to an offline CPU whose runqueue is attached > to def_root_domain. > > If the sleeping task is then moved via cpuset_attach to a cpuset with > active CPUs in def_root_domain (such as an active isolcpus="domain" CPU or > an isolated cpuset partition), can __dl_task_bw_move_cpu() and > set_cpus_allowed_dl() skip accounting its bandwidth in def_root_domain? Yes. In v14, __dl_task_bw_move_cpu() will not return -1 for a task with an old dl_bw_gen. cpuset_can_attach() will then reserve room in the destination, and set_cpus_allowed_dl() will count the bandwidth there. Thanks, Mathieu