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=J/m7WM7YbOLiIO3oHVPn1xw3cnM5G9C51HCbu+KlgfL88oj5A8iYalCxtHsQy40LqJ4C 8dVgun4EGx8WNMohmdlHzZ+0vtA4z0TC7J3PFRzb9BAdRRVjhIhUa0k2cpIRbgXTNBBHl vsxD1YRbA/Hueo0bFCBK3a15XAyl14UIwhW8kibTBZzksosgy5PESCFN2mYQLREL0zq72 9p9dpL1bpDEf48wdQmPUyQ0RX01kHrdjVmzILCX48TonzycZ5TIJPzVUTJySXk65oWgTm pXR/xTVnfiYehklTnNF530kFNLNxOge8DtSkTbIjC1cBl3AnQgAaDZmDoa52QpjQugQ== 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=kEHQXbIQcpFPW0bKZrAzuzHL13+2INyRjKvVXkwXEmDYZeT/aLH8ZTN+jBBXZzudRfDV 1kLZk43wjWkOzVoAEvtx2TQa8yoJIykZOdskWfun0l2JX4B5rouDsECev4Fnuu4RtOUN9 LUi0ospy7yc0Yxo9UIiHOtVjIGdd0c+bT0naONbHZzribJYGaGybopyhRSxF84iAMdj5S EY9DTvpLBq+wGk7ugzSoWg/+xNBqsCQI9wiRJy7Ll3e4QfITSk9GBYa8MEWshhCqsaGK9 v93gnQJzB/DC7bV9w+kOIjkBmwp0k769CmX6z7lu/OhXKqXyJkqwIRunvG+0x2+ywuQ== 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 42DCC606A32A for ; Wed, 2 Dec 2026 14:54:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42DCC606A32A 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-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 > 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