From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 919BF3C9EF3 for ; Tue, 5 May 2026 15:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777994684; cv=none; b=O8Zqi7zI+E1fEyLZqjgLOvPuZK8RjLwPk5e5BmnTHSFO+2TIWUU84xMkYGRjOMqP+T0boP6OvqerQboJoDxU7YMIYmhZhNel8Hu/u1t/qbRYfZ/FvrzU0MF6EAF1wJbFAeS62Ta1E/GweABOvB7fktQjwHbCFNTdmDxGOxx2O9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777994684; c=relaxed/simple; bh=x5CMIwHCDVwNvdmRlsbWvpo2mQKHiS7q1RZ1Iry/0AU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=occTpf2rHOm2T0WqTZfhaoaOluUiYA1ft/0Gl1z/PAPFyEKqR4wgtuSx6oES4/eVS13VAjREpfBlv7EhoumLlL2zlgGZ21ZPU1/O5WaCfmdrlRoCGFRg3mY4boV4Dbt9h1t75Z8yRKzy+6xw1xwnsrgsKVNTp2CtDnRotTrArAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Zm/O/5j9; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Zm/O/5j9" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=DruaGnBZY7Dfz6xdsJ3ENJYIH1IVYxtluH/0U788e6s=; b=Zm/O/5j9JF0saunstuwJw5qqVZ /CEjw6qTrLN71/nB0lDpHMEgNpmAQlFSVw2cavfbP+g+iMo6D2ZYYOdQd08A2LUuNSx1bjbCfAvz0 YhNKRJekJvo9VOQTrZ2LTr4gbH0vFeUCSGb/v3GzuNGEvPpFJcx5fnjgcq1B2+451zdEjPDJx+I5n PSTXpYsYy4l2IUIMgAV7W3RbIm4ilPjNeL0Qu/KUVd/7g7/Jxux78wrBaibEQn0hiFu7A5f8UwD/v E0AWpYBpDN++msdjShyNBlJ8d28BkHPFv3nQkZKFkePAhB4DX7mD/eP5KmYbROXfnnG1A9FXw54oe HUj0o4Xw==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1wKHdU-0000000DsH6-40z9; Tue, 05 May 2026 15:24:37 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 56C01302EC2; Tue, 05 May 2026 17:24:36 +0200 (CEST) Date: Tue, 5 May 2026 17:24:36 +0200 From: Peter Zijlstra To: Yuri Andriaccio Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Yuri Andriaccio Subject: Re: [RFC PATCH v5 22/29] sched/rt: Add rt-cgroup migration functions Message-ID: <20260505152436.GH3102624@noisy.programming.kicks-ass.net> References: <20260430213835.62217-1-yurand2000@gmail.com> <20260430213835.62217-23-yurand2000@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260430213835.62217-23-yurand2000@gmail.com> On Thu, Apr 30, 2026 at 11:38:26PM +0200, Yuri Andriaccio wrote: > From: luca abeni > > Add migration related functions: > > - group_find_lowest_rt_rq > - group_find_lock_lowest_rt_rq > Find (and lock) the lowest priority non-root runqueue where to migrate > a given task. > > - group_pull_rt_task > Try pull a task onto the given non-root runqueue. > > - group_push_rt_task > - group_push_rt_tasks > Try push tasks from the given non-root runqueue. > > - group_pull_rt_task_callback > - group_push_rt_tasks_callback > - rt_queue_push_from_group > - rt_queue_pull_to_group > Deferred execution of push and pull functions at balancing points. > > Update struct rq to include fields for deferred balancing of cgroup runqueues. > > --- > > The functions are only implemented here, to be hooked up later in the patchset. These functions duplicate a ton of existing logic, is there really no way to share?