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=1796223273; b=v/FfNPg0ZMAVXaMBY79LJHoyHFl8twBDNq0Pp3lnqBVIxwdOg0Fel+LpUFGRnyj5vEjZ pQbKeIpucCcFGt2byP9RvWJEl+2eXKMgFUI5bSOlRlxgL/3Zvif08WZSlCXKX2pQb9pGw 4wsQS9AYLU2ZfymizrHxhLtxaRY3nKHyneWrGdKQll8gfkcYX0KLKNN/ucYXWSoKoZU3U tysgA//qh+0X41KoQe3bvTOYCMfKqqdZAzYJSjrGlsooXHlNwP5MwHeqpjyJ9FIPpnO6n 2O2KDsDnsBDYsWORAYD7HUt7v87fZ7iAFfoNPPhM4hFOX+La4C8mmRjP1GwIjUA6eyA== 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=QhTM4PqJhu6knlI9lVu68fXBuxRnGZXW8Hg49RE04fCygi+Q2wzVnlmMkqsvJmbZ8pO6 n80fC2doBr/SlrkdLK/68fpbuXJIqEZCwB9GK3dcp4e0AOqu2wnbl7SjyTxRXGE+TeTgn fo9vDtiAYq6h4m6TbNvG8YoHlTBEUR2vQZu8soS9XadzWXKl06Qpc83irSkA9KpwPsP9J Q/rrncBjuNHPan0hFIQdiNv1TLJHa5t4mcG69Sii9Vna0kCiM+JaTtFC13CJuFw9fH3kK EYE42uEcFUgKjdaJLYHA1rE+nkrtRmipGTUIRRUknlbTqnObxMjwsc/JZShxozVsB+A== 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 B24E3606A697 for ; Wed, 2 Dec 2026 14:54:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B24E3606A697 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-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_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