Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp774782pxb; Thu, 19 Aug 2021 10:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyva6TzmgG52e3QcMgN+Qo3VGYY9WGq635Qu5kMrCyAD68/MjqBgtBJCAK5WqO9YJYDJc3r X-Received: by 2002:a17:906:d154:: with SMTP id br20mr16990327ejb.296.1629395564242; Thu, 19 Aug 2021 10:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629395564; cv=none; d=google.com; s=arc-20160816; b=0965maOSTnNhiNq9orVwbLsLRoW/uqr/ZEefsNH0aXNw4obQBU+wCTge5446y3iB2Z nvcty+YLL+Tbt8w4q/9R7DfTHNYc5KfMm8D6xNQ5RPfEpPk4B0QdThUtjYfBrvyM/Snk glpFOj0NbycxoK+0mTJwq5CA8U973h4LqRqpveWefk0ZxPm3qfItvkwK4mE61D8Rj1GG QfShLY4o5QfAKsrcNTJ1ZD3QGfx8KXlASw0mpQlNyMK9OSI7mhDlgkxqi23sqUctyqPV y/BeeDn/+ESNJ2xtQnO1mycKg234Q949nOorxsn8AauUgA1WiuH1fMz3xAF7+zh1jf8H Bw1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jAS4YOSs/Qhzw7Dj7vxV4dRXUqwtGbcxDiszG8vKWP8=; b=Bxp6TjbeLDYi2oL5cOt1fhZ6ABLXx/a7Hm/b00fY4e9+cPHVRs+CqesKR+GtOdvr4W /1e9kOQ5s7uoT0gZe1ghOffR6StVEYKqGHgGIOnP5r52wA2bBkymiRbcA7/ZgF39Xu7T GXgAbxSpV5YGufggptt7IL8/9JEbC1YqUbOIouLXOhnbr9cxsu715t2XA4n5by4RuwSv gW45jwyiOB0YYN16ejmm4g+SwbcIZmKgQySlf1t/sIgKM/yemeOlewW2M30rBl6kmOKk ZBYp1+kLr6yjlh8jcAcglhl8pq6jquWHSp/+s41Qb20EEzcQNC7T7EMrhdeYmwArJBgR mJcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=JoVwIWwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m27si3954781eje.688.2021.08.19.10.52.18; Thu, 19 Aug 2021 10:52:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=JoVwIWwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbhHSRvU (ORCPT + 99 others); Thu, 19 Aug 2021 13:51:20 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:57742 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229465AbhHSRvS (ORCPT ); Thu, 19 Aug 2021 13:51:18 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1C83122144; Thu, 19 Aug 2021 17:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1629395441; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jAS4YOSs/Qhzw7Dj7vxV4dRXUqwtGbcxDiszG8vKWP8=; b=JoVwIWwiWVQtEBK5FKWYqOtsJD1WkBAJJFrLfPnAhhHVgl87ZQ5eoU7l9Ki14Zbi5hu6ef cqV5bCj/qSa4ybKpmHfw5ib/SYRuWegmEuzsUC59KtQAOlMs1GTA4/MbZymQ2tODf2WawS TxjCxfqtsFM5bunOF4ZXPDkNTolSLTk= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id DE9CC13AAE; Thu, 19 Aug 2021 17:50:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id Z4E6NfCZHmHnOQAAGKfGzw (envelope-from ); Thu, 19 Aug 2021 17:50:40 +0000 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= To: linux-kernel@vger.kernel.org Cc: Vincent Guittot , Phil Auld , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Odin Ugedal , Rik van Riel , Giovanni Gherdovich Subject: [RFC PATCH v2 0/5] leaf_cfs_rq_list cleanups and fix Date: Thu, 19 Aug 2021 19:50:29 +0200 Message-Id: <20210819175034.4577-1-mkoutny@suse.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. This is an extension of the simplification patch posted previously. The original goal was to make the code a bit more readable but I noticed a bug meanwhile and included it in the series. Reason for RFC: - I noticed an asymmetry in update_cfs_group(se) calls between unthrottle_cfs_rq() and enqueue_task_fair(), not sure if the omission is warranted. It's marked XXX in the patch "sched/fair: Simplify ancestor enqueue loops" Patch 1 - fix of load_cfs_rq_list handling Patches 2, 3 - just (re)naming things Patch 4, 5 - simplifications of load_cfs_rq_list and ancestor processing loops - no functional changes intended RFC v1: https://lore.kernel.org/r/20210225162757.48858-1-mkoutny@suse.com Michal Koutný (5): sched/fair: Add ancestors of unthrottled undecayed cfs_rq sched: Add group_se() helper sched/fair: Rename leaf_list to more fitting load_list sched/fair: Simplify load_cfs_rq_list maintenance sched/fair: Simplify ancestor enqueue loops kernel/sched/core.c | 4 +- kernel/sched/fair.c | 220 +++++++++++++++++-------------------------- kernel/sched/sched.h | 25 ++--- 3 files changed, 104 insertions(+), 145 deletions(-) -- 2.32.0