From nobody Mon Feb 9 23:39:28 2026 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78C172EAD0D for ; Mon, 19 Jan 2026 17:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768844537; cv=none; b=qhhZegKTBELFWtEs20MRnvoPt7ZP19ZPnpwBz2igODEA+BSMzzCX5TsfaMbDhdnGbxRcj8KRZzcL+/6Md5JtxFOiMyOAC69AVF1JCjfGBNn9qs/aU3Op+CcM3NR/H1WP4clpoh7xMYlmcL3rUl2jSYzI7bHs1h2vY5JmwLzHHoA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768844537; c=relaxed/simple; bh=Pve0y2s3CQv3m8yFMiCNzNXDOzNIJRNUCmvgs8H62Y0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bxd+/dp0DO/ZCy0NgjVcb5ImBP4okFFzi3BJDFUkA56vhra5+OIpyLsbu11vF1sLi0eGBSqDQoyQiHaAE5lLTVQwbLBGPwYcACasyR19e0PuFu4JDY7WW21h7ugA2PDDQsgcEV/yRAyNJEEvMv9Vn49VCjSZDmvQgBtzn+pL4SQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Kmj1KIGn; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Kmj1KIGn" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-47edd9024b1so27909245e9.3 for ; Mon, 19 Jan 2026 09:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768844534; x=1769449334; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=QmBXMzWNR7NsI/hVJO8iAR0Cx/cAFyxUC3KF1YYUBew=; b=Kmj1KIGn71e55L79UtYJzzmpvdoBiL1zM1sCt+Jb1jEhvjMnPmYmFHoE6P02R47iW/ 6bCZ1UcE/Qlpox25eLJnaEqaPJuhFYk2bbf64FEbO5SDcdToIIDDzBkSwevHnGMReXiL Z3cGbeVUfYY6eNKngl06Yg9XJj6DtbRI3yz5nTMJXK1oLhZieBk52x/O26kML60LKC3V saHK400LXra03AjIxGoyoEV+Ke9sVJ0dV0M5ZURjmRw5Hr1R4xiNwKok1x/BAftHjhv3 m4QiUoWwqkCDL++kw5EguhFwFcbH/YBuIxrgC5UHBhpIzjqDrSTWKKEHZ/XERKddMZfW D0hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768844534; x=1769449334; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=QmBXMzWNR7NsI/hVJO8iAR0Cx/cAFyxUC3KF1YYUBew=; b=d0dDpW0NGqS4vA5yziE5Hh5u12PL9uMRUjFDsOkcHDTqrzx9mPSD1LQYuAROSK5yFj tFRB+viwVlDcQfrcUoBV9c8miSGcf0+vH1ITtYrCl3F7XiT3IW4H0OYeZRdU3FJrXGDB u/tPJfEZTaGKq17agO+1hj6Ibft0Jw/xRiGJ4IRdjgnpLh796f2zbBidSUUMGhTpAfV7 ogL8R/gLAEtA8bRdUoS9pSPtV0XSNm9EeiJVMO5qkWKo/I65lbbvHZ6dVpHnaYIIwTeb 3SziAxCovZqTnPqQTx72ow4UIc6rqYbBShVFkTHhtvl6FOthMf6Kgik2Q2HVo2cs80ew hebg== X-Gm-Message-State: AOJu0YyjWg3cdDP/+DnOaTxsCwkMguKzBX7pEV/9zqSSlJDhxl0eD5Ck YWMdnvMl1IvJlkfFvFGAX5dSP7MvoNAxtOA6RRFUI2hKt7eoJCixvFl0X+Qqr0HYcSU= X-Gm-Gg: AY/fxX7cCXo/bnxmCQQRCOHZTlxEEtYE4q/RrjoJPOK1mm6IfZPDykp7CJDord337dP cEQDP+B3RVOZAU/+sOBF2yLj8pAN8AUNcnyOGmsG2/DN101AdibSvlJvByS7PPlaKJyiHVzqwdC I5WFWGPWdOxNua7TC3eWr6q/+uC8r/hdvg1ONES5cYoPxBfnPnBdIuFr2E0E08sICpZuF28sWb+ pafZ54EwDxo2myIjcae9mCgus5p9UDlBZySjZzG2dc6EKXdRXmON0BhJ+/ovAV5R4yDHoKlGkS5 2+E/gt7E701xRmpNvXuHUa0/fbaofT0mLRmy2fAtXKPFzGs+7YQCpXlVmLGEm5zyQ+AJ6Q16bTE ihWXBRDNMzpCQojHcQm1rehgILu8wJCQu9xsoBl879QcPMpuGPYMiN9Ljtfoyt7lqs5rj75FNRj OU8EjdWEQl5rE+IWLalZHT8EnpCdO5oVNEqkLG0RXvfQ== X-Received: by 2002:a05:600c:548a:b0:477:1bb6:17e5 with SMTP id 5b1f17b1804b1-4801eb10f27mr133473615e9.30.1768844533836; Mon, 19 Jan 2026 09:42:13 -0800 (PST) Received: from blackdock.suse.cz (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4801e86c1b2sm199658755e9.3.2026.01.19.09.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 09:42:13 -0800 (PST) From: =?utf-8?q?Michal_Koutn=C3=BD?= Date: Mon, 19 Jan 2026 18:41:20 +0100 Subject: [PATCH 2/3] sched/rt: Move group schedulability check to sched_rt_global_validate() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260119-sched-rert_groups-v1-2-80c1e5269910@suse.com> References: <20260119-sched-rert_groups-v1-0-80c1e5269910@suse.com> In-Reply-To: <20260119-sched-rert_groups-v1-0-80c1e5269910@suse.com> To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Michal_Koutn=C3=BD?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1573; i=mkoutny@suse.com; h=from:subject:message-id; bh=Pve0y2s3CQv3m8yFMiCNzNXDOzNIJRNUCmvgs8H62Y0=; b=owGbwMvMwCVWZ8v0fMrtHxyMp9WSGDLzct75LUz8EXzL2POtdNTELw/eWFjNjujq+yXs7KizR V43U/B4x0QWBjEuBksxRRYn4TzW+R9k3CxPd32BmcPKBDJEWqSBAQhYGPhyE/NKjXSM9Ey1DfUM DXWATAYuTgGYao0djAyfE+5MX/LU+8BshwnpybI3D/3mNX+3mVns52PFKs7EvfdCGP7wMu+880w wr/zQbGEF1gt2Be0OXT9OvjiQdXhJzT/fyVv4AA== X-Developer-Key: i=mkoutny@suse.com; a=openpgp; fpr=9F2AB6F1F2BBEE7621C1B620CFDED9A2FD1314F0 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 --- kernel/sched/rt.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2dfdf2d9471be..c621e61568359 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2810,15 +2810,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 @@ -2850,7 +2842,16 @@ static int sched_rt_global_validate(void) NSEC_PER_USEC > max_rt_runtime))) return -EINVAL; =20 - return 0; + int ret =3D 0; +#ifdef CONFIG_RT_GROUP_SCHED + if (!rt_group_sched_enabled()) + return ret; + + mutex_lock(&rt_constraints_mutex); + ret =3D __rt_schedulable(NULL, 0, 0); + mutex_unlock(&rt_constraints_mutex); +#endif + return ret; } =20 static void sched_rt_do_global(void) --=20 2.52.0