Message ID | 64955b50602fc64e2d3c7d4a92a1f9459e8c7ead.1708120036.git.mirq-linux@rere.qmqm.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp12431dyc; Fri, 16 Feb 2024 13:57:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdEe9sMmZbVsuNnNSDmHcYhVjtJNk+PtkUstXPIRTrZef9EtELb7SFieZr2zhMAKXr+ECI0VEG9NDwueB2PBZuBUkV+w== X-Google-Smtp-Source: AGHT+IEOt094M2VIJGLtzMzDl+S1GLs/sWZ35c6+f5w/Fbs3Wzin3GDUU7AsRUqeRaK1+71wKnKF X-Received: by 2002:a05:620a:831b:b0:785:ce02:4f82 with SMTP id pa27-20020a05620a831b00b00785ce024f82mr7338463qkn.17.1708120651998; Fri, 16 Feb 2024 13:57:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708120651; cv=pass; d=google.com; s=arc-20160816; b=sVk6iG1yTXpheXXd5M6P//S60cNYBpoLDr2xPwUCLt8dtD+1sqj1PVdJnm6TrViXHm eF8Q33hkJK3FYo98qWZPB3JO/g4iWezusRLKCO/wWvTeOHVkMuqTts7mkDyFv7hLcBX9 mLvc+yfAMociwYKnef5V/M4L5tzvPxClkDhACJaeV5DWw7/6B5z/9Ta3TzM9Nop9ArK4 2nlOVgMpoEf7GQm9vOGKcIakGM4HOM0cXETI+w9Fsm9kAz6jFVt7aXI9/O3D69E20CT+ REpOyDs123meZ6HJL3/yxZNLOlCBEyyErDBCbaawzdRUterCT3Zrt/58O8fvruw6hjVB nqqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:message-id:date :dkim-signature; bh=dWF32Bsm43qzkN1E5Tcp35XTWxlP4wFPUWa+YZ1ALUE=; fh=jau54c+TgUldDEn55DCBp4siAHinBWPaE9fzppKWsnc=; b=E/IrljUMdjyAuOWMlG3jYybhHI4x70/aiZ/U+FS+kVb2QkNTfpfaWiyI6F6or2Z3mr C6sYVQKDNjKPOOPicmD/SehhPUZxhk0qPQabXMK8JU157/DT8rR4lRK7crqmvDBU3r3k W2O0L7uYHqXGJAlJE3+HZP3Y6lg1ty71bDRuA1OhnJpuO9QoJHVaKyX7FH/MCYw+wa8a lSDPBb+ICizAT+lgIe4epIn/eOGrH0AX2/rompr/kXf3LQEXxlxLw6G+ke8ffvWIVp1E KDrbmL/JLN2rcQjVFFfaZX38ux4xay02EAn2uwvacDlkuO4Nwq2Q/hi0JlMVCZnCxg6K TXew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b="Fy/mAlLL"; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w26-20020a05620a095a00b007873d8c43f3si814908qkw.364.2024.02.16.13.57.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 13:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b="Fy/mAlLL"; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69382-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3614C1C24977 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 21:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AF5E14831A; Fri, 16 Feb 2024 21:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="Fy/mAlLL" Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) (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 520951420B8 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 21:55:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.227.64.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708120559; cv=none; b=J8BYL+VI95mCztrXZAEhyRPTD1WrPgxev5fNZV+0+QPVsmjnTr/zG4TMyOYYNnxygE7hbhdMJY9VrOMM4YaO3m2p2EC/itjfX8ZWxSnKdojvht9f20Py8r9Nv7jzE9L9d46EafCnQWvx0e3mBiJk0RiXMXRl0a+Fy6AV9mXZ2Pg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708120559; c=relaxed/simple; bh=MX75vgR6k4K8U4BRrCaF4Wpk12Wkgq/RzyxMwzDGcC8=; h=Date:Message-Id:Subject:MIME-Version:Content-Type:From:To:Cc; b=GkLSIu14DiR4moFV8H+30LNB6ohe3XQSlslRIMEsvPi3lF5cEXc4OEjxmrk6PRkKQQZEnQcWsKEvOEew8g/VNxx7xbS38nvGxYQTSkyZ1qMFrs1Z3y/7KTiufyvlQGndqo9g1zu1x0v0SlOYwcjHmw3L7M6yloxFMsU3iJjYAHA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl; spf=pass smtp.mailfrom=rere.qmqm.pl; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b=Fy/mAlLL; arc=none smtp.client-ip=91.227.64.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rere.qmqm.pl Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4Tc5N2504yzBH; Fri, 16 Feb 2024 22:55:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1708120547; bh=MX75vgR6k4K8U4BRrCaF4Wpk12Wkgq/RzyxMwzDGcC8=; h=Date:Subject:From:To:Cc:From; b=Fy/mAlLL2gCGZfBrKKmnW81m53CXbRYbtvjQviBLDxkDPcvP4rckuYcrEZv6y0zcf lHvQuOoy2hYoHhTxC4kuqYeOPPJMPVJ/LzUScwPEOeQIGTGtIqwskFaAhtPlKWWv4S 7QrIC4ghC9uLKQVEuqiK/4cyoXyrbzAKGLDx0e37XzRhC2iHqC0SHG59e3ACFIzMbp 87JBfVRC+Wq7/8kJ6HPxJ4HB9UK2Ju/7ux+4P4BmPcI8qC0FoSd0J9wNrh96l6s1Xg DtQB9NbBXx9/irAgI5b9jEMCxyoDvE3VlvBAWAJSg1am3OBxE8cwuEKnU93qqB0b7h uqcxjIRjVkezw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at mail Date: Fri, 16 Feb 2024 22:55:46 +0100 Message-Id: <64955b50602fc64e2d3c7d4a92a1f9459e8c7ead.1708120036.git.mirq-linux@rere.qmqm.pl> Subject: [PATCH 1/2] sched/topology: loop properly when clearing flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= <mirq-linux@rere.qmqm.pl> To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, Len Brown <len.brown@intel.com>, "Joel Fernandes (Google)" <joel@joelfernandes.org>, Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Cc: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791094320854400181 X-GMAIL-MSGID: 1791094320854400181 |
Series |
[1/2] sched/topology: loop properly when clearing flags
|
|
Commit Message
Michał Mirosław
Feb. 16, 2024, 9:55 p.m. UTC
Fixed commit introduced sched_group::flags and a loop that was supposed
to clear groups' flags if the child sched_domain was deleted. The
iterating part was missing.
Fixes: 16d364ba6ef2 ("sched/topology: Introduce sched_group::flags")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
kernel/sched/topology.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Fri, 16 Feb 2024 at 22:55, Michał Mirosław <mirq-linux@rere.qmqm.pl> wrote: > > Fixed commit introduced sched_group::flags and a loop that was supposed > to clear groups' flags if the child sched_domain was deleted. The > iterating part was missing. > > Fixes: 16d364ba6ef2 ("sched/topology: Introduce sched_group::flags") > Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> > --- > kernel/sched/topology.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > index 10d1391e7416..75b1a18783c2 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -767,6 +767,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) > */ > do { > sg->flags = 0; > + sg = sg->next; > } while (sg != sd->groups); This has been discussed here https://lore.kernel.org/all/20230523105935.GN83892@hirez.programming.kicks-ass.net/T/#m0881c3e17954dc6e23f81216873e721f8395e554 and here https://lore.kernel.org/lkml/20230617081926.2035113-1-linmiaohe@huawei.com/ and the right solution would be to remove the while loop but for whatever the reason, this has never been resend with an updated commit message > > sd->child = NULL; > -- > 2.39.2 >
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 10d1391e7416..75b1a18783c2 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -767,6 +767,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) */ do { sg->flags = 0; + sg = sg->next; } while (sg != sd->groups); sd->child = NULL;