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=1796223273; b=hCtD8XVnaadTAQqnlnUUn9+p3gNw1yjx6EbAzEGBuwXJjSgteNDjjw4wEYCwRNK0lT4D zX0kEUElQULmRu/a+iZmuN0w7cH9RckS/KPN48a0/GCp8frJobEK41wmxFHtZfO3FeKsE h9jkyqTduA74WWqNomAsFbLE3/nMa1qkRRsc4nb9D0TEMwY+btjn5G2IdsWam4zXRRfl2 HXmaF98Hj/vQJbkRLWW2oMqJMvf1fsnHJywxWpHhe9K9I7jTmQWy5+ODu/Faajy6SnmpV mIJjMPP+ONLq7vFZNNzDvoJb068jMrgTnhSSOdXkGhciwfbhCLqSjcxgWiueHKngBkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223273; 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=25BOn7/PaQGp3SMrpybVS5lYqqFaaA+8kVzNx3lw6Zs=; b=aiSMBPTotM4EHxC8u6TZZIJ5aGvZO4B7EdwomLTnUACmvHMYpDQiQEkBFAcgffuK5MaP zzdxhcpqrQOgP7ZtF5vtMy7BFSHk+UHd23m2ZuD3+/nnwoUN0zhLW6WBaBlnTrT3F7saa 0uhodJFdWGh2aQ5x7nmyDAbamz1iJyYHyiJceIGsSqtgf9ZFc+SRMxJNlPD8gfm2jjKbG Uit+xEd14MrhC1mMUdicRPUMtWWKCD/RF85v8e8BjRwKKbj8zmUxiIPLVtHcVik2xLjIV 2/Z3cQt3ib7/UoXsKAvEGPnjb3QBaQRscxB4cSyxO7KtrnTnlwY+ArM4hRVSrKu/8oA== 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=vNd4sEQa; 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)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0EAF606A69F; Wed, 2 Dec 2026 14:54:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0EAF606A69F 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=vNd4sEQa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796223270; bh=25BOn7/PaQGp3SMrpybVS5lYqqFaaA+8kVzNx3lw6Zs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vNd4sEQam9Gzv9mlxUht4bfladULvcnG6qEjttXnsHSFRPrE5cd4DAhe7X3P23q3f wgCApe69wajQAB1vlPoq4O1k4IzQlh1i3ezkqonyc/63Vvt9THy28MWMPBhiVuY2uG 8SaBDhtjTWvrtDw0sn4BK03NYi9knqjOMyrT3zKHuVLMb28dF3/JjSuZ6hpD/qAA7g abXNLwEx+j5Ih6w6dd2OBpRj2HePCmdGdhh/A0QjNANg3Uu9AvHImWL47H9Xez54y7 EtNBsCe9bKhIAh2L6myD0zwQUCLPoMpu0sAsLQfp1SR6jTmEJ67lOncHd+29+beRcG N2tiFRj3INYFA== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jfglB5TV7zZVM; 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 31/36] sched/deadline: Count a task that departs while a rebuild walks the tasks Date: Wed, 2 Dec 2026 09:54:24 -0500 Message-ID: <20261202145428.341797-7-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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_task_depart() charge the departing task's bandwidth to the wrong > root domain when task_cpu(p) or dl_se->dl_bw_cpu is still active but no > longer in p->cpus_mask? Yes. In v14, dl_task_depart() will count the task on the CPU that the walk of the task list would pick. A new helper, dl_task_count_cpu(), will pick it as dl_task_rebuild_cpu() does. Unlike the walk, it will not read the CPUs of the cpuset, which needs cpuset_mutex. The remark on dl_bw_skip_gen holds for this patch alone. The next patch of the series sets it in that case. Thanks, Mathieu