From nobody Sun Jun 21 02:30:14 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D82BF387593; Wed, 8 Apr 2026 11:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775647214; cv=none; b=kR/a9rLX0Lg0+9zYabQUUckgz9evHh1TzfYFBPynhSBnIxLs2HeTfZMn1ZxEZlqd/XBkLopb9MguCQRetHIepzRS9S+uFRsdz05iFQb/pPhav8IU9lfoNS18KkQQ/8CcapzLRr4Hx5AimNWbo9DteyV5AvscUz/B8X1CTcfB8Us= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775647214; c=relaxed/simple; bh=TzI0Bko3gh96xVMT9t2Y3Pgq6ch+STXsbQhen2PCvM4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=nFE0AGdeQpJBWn7MqIF3SuaGzSjoJG/4nqKxHfn/AdqRSWyy+AIrnJ7tVkOfAhloXhDbbKa8sS7Lv9tuMPLZmLmfCvm6icaaPMEp66d/Ca71NOxd0yjwSV7Nqx/byjc/yXfpKxoNxkEQxFizG9u5thcdaTTB7MXi3TlmUMtFAeM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jgVyKJb0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=lIKbQ2mL; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jgVyKJb0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lIKbQ2mL" Date: Wed, 08 Apr 2026 11:20:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1775647208; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6FbPK4Lj0zAudYmu8yuRjPIfKffcn+s9BXxs6JqBF4s=; b=jgVyKJb06P8P6jtWeEfw8iaFXo8/i9YOKOc7JcoPbF7wRubBgWw2VDxLstqEdFSPBrgmVa 7IVntQRWdMz9DX/cYnn4HoPywzvy9SPrvys/faq39i+3p6eJIyRl+hl1e9L23l/AGiryKZ jt/jXgmqdFKRHBCUcQP0OkDjbwE4RYXfpnaFQdRt9E/174j4lx3552kmL9AZ79U7hZt4aY QBz7WPtXvG0IkfVamN/6xJ2CqbcbPyPsmVnc2lWZckERfGNIkmWhNnMf+Zb89VMbNHoqqk Cp4qBm9PDrQ9sjcY9/+iO8ro6XyJq1pq+yN2RR587TJWSQSDNJBcVGeprV4IdQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1775647208; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6FbPK4Lj0zAudYmu8yuRjPIfKffcn+s9BXxs6JqBF4s=; b=lIKbQ2mL+LgKgG8VvxGevNwHTwEc9qIZxB/qPtNdLKqRhyvh7P9tkrXRG6is6cGljuBwQh CYvkk1YghiacJ4BQ== From: tip-bot2 for Michal =?utf-8?q?Koutn=C3=BD?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/rt: Move group schedulability check to sched_rt_global_validate() Cc: mkoutny@suse.com, "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260323-sched-rert_groups-v3-2-1e7d5ed6b249@suse.com> References: <20260323-sched-rert_groups-v3-2-1e7d5ed6b249@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177564720734.801717.15872002446955322013.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 4f70a0456d090303d5a6c915dd7d9db9da56cb16 Gitweb: https://git.kernel.org/tip/4f70a0456d090303d5a6c915dd7d9db9d= a56cb16 Author: Michal Koutn=C3=BD AuthorDate: Mon, 23 Mar 2026 13:39:38 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 08 Apr 2026 13:11:44 +02:00 sched/rt: Move group schedulability check to sched_rt_global_validate() The sched_rt_global_constraints() function is a remnant that used to set up global RT throttling but that is no more since commit 5f6bd380c7bdb ("sched/rt: Remove default bandwidth control") and the function ended up only doing schedulability check. Move the check into the validation function where it fits better. (The order of validations sched_dl_global_validate() and sched_rt_global_validate() shouldn't matter.) Signed-off-by: Michal Koutn=C3=BD Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260323-sched-rert_groups-v3-2-1e7d5ed6b249= @suse.com --- kernel/sched/rt.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 893e54d..e16d8f1 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2832,15 +2832,7 @@ long sched_group_rt_period(struct task_group *tg) #ifdef CONFIG_SYSCTL static int sched_rt_global_constraints(void) { - int ret =3D 0; - if (!rt_group_sched_enabled()) - return ret; - - mutex_lock(&rt_constraints_mutex); - ret =3D __rt_schedulable(NULL, 0, 0); - mutex_unlock(&rt_constraints_mutex); - - return ret; + return 0; } #endif /* CONFIG_SYSCTL */ =20 @@ -2872,6 +2864,13 @@ static int sched_rt_global_validate(void) NSEC_PER_USEC > max_rt_runtime))) return -EINVAL; =20 +#ifdef CONFIG_RT_GROUP_SCHED + if (!rt_group_sched_enabled()) + return 0; + + scoped_guard(mutex, &rt_constraints_mutex) + return __rt_schedulable(NULL, 0, 0); +#endif return 0; } =20