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=1796141947; b=EljDqNRZZvJ0DCBqfVy0DRUXyROHMlZ8q9r1xy4RppNqrA0Nu2aBqoDw0FrIerBhENPD lTJykFpmrF6+10zZZNnIQCj1DjVVbXiNNZtzxavvhXTxnAVoxpBbCST2SI27hPGhC4p85 VnNMW/nEHanggjzG/Ldr/J0D4cmcy6hnJ11sZFSaRmRUR0WSeaIaV5P2AUWGOwFLKjsC1 BErVyM7aspeNcg3QAsnpZAJv5KWv3RguUSOr+2vU88lpmF4LdTrUV0FfXtkjJjtRA31C3 rADP0nBNGcTXHcXtSDO5HzF7mURb2SLqjR4pAF7ukfAxTmB73Ldi4wma43bsacFavzg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796141947; 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=89TvJBUzrx6tJK5L00EtOXy6pXow0KuL7aucPouIdn4=; b=zrMBUcN1CPMKYv2VncG5ZsWfj1IQf9bmOK7S25+povfptVQclIg53zKzokSnwI2RPUHU KINZzX8Y69SEOvLn9sh17BazgwkWhWnyrSQku5wd68JjlBNW1EMsHxHccUWpp4vaYiorZ G41+qxVrcBYYA2r41b8jgaETkzW1YcHP9DFFGqB5ZChAGEo8zbYq27mIl1r7arqOxmuS9 /YFo/ZSNCh4ZXgUD/6+v0VWxKT3cNqwwdFGzWfEjPRMim76C1OCzSpwpmG7Acmd6R+ukA 4Ic3OpdmzQEBhvbgXXcX3ybnXFTXQQeCD14zNkYI3llV47DsyiuovIozJCWwC4BnrJw== 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=IFZOOfYS; 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 D72BF606A692 for ; Tue, 1 Dec 2026 16:19:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D72BF606A692 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, unprotected) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=IFZOOfYS DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796141940; bh=89TvJBUzrx6tJK5L00EtOXy6pXow0KuL7aucPouIdn4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IFZOOfYSuIouYndfOAowlDqyXCRR+dFwo+Gig4E5qOREMUQdRZq60/qMJPYBf/Z8x +3kF2ZmQ4W4ef8Ysop9HZ7Wf58GnJVN1L1OYD9x7ZZHQCCn6tSpxjC1Y3WrHnxliR+ l7oJjqnXO5VHtkTqyOdN3CaVTlKmrVRtaG6VzV52TaFcmWZ+5P9iNfQkrxW9LxqV+u je4qDNE0MZ5/TnJvCEYP/5HHpgfWDxN+tkn9Gmeiv6naZlN+W05QWni3DcZPkGx+bZ WiKtug3g8sjlDkAmjkhePMFMVEYNx3HpC38aHI3VQtACHC6g8wJ/dMVAqAWHdyCrLK iPoIpWKpjSgyg== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jf5g844zFzYy6; Tue, 01 Dec 2026 11:19:00 -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 v12 17/43] cgroup/cpuset: Refuse to take a deadline task out of its root domain Date: Tue, 1 Dec 2026 11:18:48 -0500 Message-ID: <20261201161900.284450-3-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <63398d7537bc4e331e08c6c998fa1506430cac57.1795771148.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 > With isolcpus=domain, can a deadline task counted in def_root_domain bypass > this check when a PRS_ISOLATED partition returns a housekeeping CPU to > top_cpuset while taking a boot-isolated CPU? Yes. In v13, dl_task_keeps_root_domain() will take a fourth argument, @leaving. It holds the CPUs that the rebuild takes out of the default root domain. The check will no longer count these CPUs as CPUs of the default root domain. The new dl_tasks_keep_given_back() will make update_cpumask() and update_exclusive_cpumask() refuse such a write with EBUSY. This patch makes a partition invalid when it takes such CPUs. Here that would not help: the invalid partition would give the CPUs back all the same. The new case partition_gives_back_refused of deadline_bw_test tests this. > Can update_sibling_cpumasks() cause dl_tasks_keep_without() to skip its > check when a growing parent partition has two invalid child partitions? Yes. The tasks of the second child then run in a root domain that did not admit them, as on v7.4-rc2. v13 does not fix it. The message of this patch and the v13 cover letter will list it as a known limit. > Should dl_tasks_keep_root_domain() and dl_tasks_keep_without() check > !dl_tasks_hold_bw() before walking the hierarchy, and skip unchanged > subtrees with css_rightmost_descendant(pos_css)? The walk of the tasks already does this. dl_tasks_keep_cpus() calls dl_tasks_hold_bw() first. It returns at once without admission control, or when no task holds a bandwidth. The walk of the cpusets stays. It runs only on a write to a cpuset, and update_cpumasks_hier() walks the same cpusets on that write. v13 leaves it as it is. Thanks, Mathieu