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=0vpIQEzyP5WUG5dh8oTypqzSl+BPIO1tZ0kCkc5mvuxMCrUAwpwtlDLD3IP9xIgoOyLS Fs9lIDHYs2DHuTkPiJIUY89poLW9OSS1Dfh+xsu2VRmxe5ilVKWnuHonVZWJNTdxXNPDe 8yjG6e4riwEQjD0N5m98AVVMX8eVfCeqfrB0B8VifEl20GylP+Q2xSlducT259KLaXvsB 4EQbwj5miQDhTbTOUqy4f06ubF3Hhzzfbh2oA7mDnkgUQthNROfI8Nm/hwdNQPtpPDLUu e5cgsZUL+vjmzGsI/nMYQU3YDXToNYg/sNJpPHj8BK3XDNazxxF5BSx2B6eVYL4d86w== 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=1ndmlLpt9tcHykl14futRLGQBqPngKWs5CUEpX8rkck=; b=gGhSObKc3X73xUKLib+ToFsTMEtjPAn0gugtdG77LV7jYSx6CA8IHhgMQcQbGSYNG4Am R732jJ4xJSOd+KaF2PO+7I8CeMAQOeftn3Y9od+YEKv0+x9VcgGWZneDhl35abmklXuFO eBbsxkE2IdsV1YG9rfalRJQ9mXKy0A+vCNN2KEVxWLYuQn0kYCqTTp42KjqRtYB+09IK7 UHxryWcope+15Yyp3tcTFM160eEIkHkvoW4Sn2xkDLyEG/ixsKI52oSk1EE34KBdcuG44 eb/mo0T9dTOoE7ab+UreOVyPeIfGxVqQVJvsfPn8kNsGqkCyhZ3jWx0nolFmiHwOUGw== 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=aVshtAlN; 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 42DF0606A32C; Wed, 2 Dec 2026 14:54:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42DF0606A32C 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=aVshtAlN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796223270; bh=1ndmlLpt9tcHykl14futRLGQBqPngKWs5CUEpX8rkck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aVshtAlNiUnaoBsyAsamQ7HyxzVJ34ftLJAngIPydLUYRUV/W97MRVN3k2ovpy2ze x9lVkjV35d/DsR6V45USEWlmYXj7huRVjbkIF3kQoxof1T6GifMHWMYhNAHjH9xiBT MID/kA75cE+HE+WfJX2b9KkhsYg7WYUL0vPlFUQ7Gz3ZQgQumT2Ws6W+R+0+DmM/tn zzQWlVsdelkp7AXJ3UiDDonrw1Ln1TM9cmApsEQSxk34CXI90+aBcgRN7moU2PJP3a CQnxNvhAqj4wVdDqGqWOaaa4+U8hBVx+CzRXeLu1ztDMdBY35/gxKE96zAOU7kQSf+ 56hb4JOUi00Dg== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jfglB1MgMzYhR; 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 06/36] sched/deadline: Keep departing bandwidth across a root domain rebuild Date: Wed, 2 Dec 2026 09:54:19 -0500 Message-ID: <20261202145428.341797-2-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <6b669993ed9589032ec88900ad05418673030fc5.1796146461.git.mathieu.desnoyers@efficios.com> X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Can dl_clear_root_domains() (and the dl_departed_cpu branch in > dl_add_task_root_domain()) charge departed bandwidth to the wrong root > domain when dl_se->dl_departed_cpu is split into a new child cpuset > partition before the 0-lag timer fires? Yes, until the 0-lag time of the departed tasks. The v12 review of this patch found the same case. The v13 cover lists it as a known limit, and v14 will keep it there. > When a departed task returns to SCHED_DEADLINE in the same root domain > before its 0-lag time, does deferring the old p->dl.dl_bw subtraction to > dl_task_release_bw() after raw_spin_unlock(&dl_b->lock) double-count the > task's bandwidth? Yes. The admission check in sched_dl_overflow() still counts the old bandwidth, as on v7.4-rc2. In a full root domain, sched_setattr() can then fail with EBUSY. On success, both bandwidths count until dl_task_release_bw() removes the old one, right after the check. The v12 review of this patch found the same case. The v13 cover lists it as a known limit, and v14 will keep it there. Thanks, Mathieu