Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4204816rwd; Tue, 23 May 2023 04:55:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mAt3P57hcCjDmlBGGIjrWu0Gc2t2/Bm8CR2u6h0FcJfzFLU+9pDPeRDSk1feKyPPBtZMx X-Received: by 2002:a17:902:f14d:b0:1ae:4bbb:e958 with SMTP id d13-20020a170902f14d00b001ae4bbbe958mr11507512plb.14.1684842905702; Tue, 23 May 2023 04:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684842905; cv=none; d=google.com; s=arc-20160816; b=RrHHqqCIFSMzq2WispX1hh6/Ql4gV836jHFsVrUJqkMemzelfByDaAh2O4GqEj4GT/ L3L9xhprTgIZyZyNPT6TsJYYbhAsR9bzTknleIzhQGRSu65Yc+0o3Yz+kPjlx5n44u3N DTsf3XKFhpAsa5JI2t/901QX7xShliPnzF5dLjxZWAJiIXeghhAD8Jwy/TGUiYERE+w7 /Nft24803yvN3AqBXjC1muKtf5MnmXfiIVjgbXStmc5rLK3VnuzNib6J7NrBH1maI6Ko hpQ/crzNIVq2ROKWvZck7ZNO0B5RrXbHHd4zSEU2OEaC3qW8/cskvpcjPskg+/MU0nj4 Wumw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u58gKGYImk19qWRxWKlrjAh5POyCRjifFqBhEoUWksk=; b=UiyJwtvU1RzKaQP2zX+hw9eY2vQ5IPUT7aOmaPQ13qk/pTiACrhn0sCRjQYT59Wfn5 qPw1BpGCSeic7Lb8I1+n1Tu8ygH+D2hwqda0LdHeSXsJgaZqu+UCgSbS8iHVvHljNxju OwHNgipDwC1dnTuD2Y5dPqcEeNtexK3K/xHVRN//kINRz2V6ojnreJWOa+K/vG100yvf BGzATO4fLHMRh0GcUKpGWOWb8RHRoq5fOEpZiIrJ36uDr57Nq9dY9YJ31q+q1PeXQF1e mr+IohBbj32bzilfwPRQWArKxSbB5meDJVM5tx1mdp3h2L+4+pPggcIUR/iIwW2XaXoh /usw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=lYt51G6q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903245000b001aaec5cffb2si3140690pls.280.2023.05.23.04.54.50; Tue, 23 May 2023 04:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=lYt51G6q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236642AbjEWLkw (ORCPT + 99 others); Tue, 23 May 2023 07:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236568AbjEWLkN (ORCPT ); Tue, 23 May 2023 07:40:13 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5BE118; Tue, 23 May 2023 04:40:11 -0700 (PDT) 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=u58gKGYImk19qWRxWKlrjAh5POyCRjifFqBhEoUWksk=; b=lYt51G6qfsyAQCtCCDMJ8pDclW 04RPhDEpqBfjX7FDBwBQWngCk5Yxv6NjbE3gnd7tjLDDPdE8BRS3NA0NeuUBc83FgM9BfxCtzCNF9 7/Zc50lwtiUDeH3HdQ0aOltxQZh6eSMz249+cnx4SgTAyMCGxf6KjUyOGI8oRfP8INZgC2MoUmTZd iJG9OUWHGd7wSAS5y1PQFgZxX7ttHCgYwXcksJYvkfOmywILB/BwVU7K07RH42xCQ/cHN24XWASYO Udd4D7WL0bwAl+Dnl7fh6oCy9nez0GLjgMgxZqscBmwe1WGYj4RU1f5pFGS2gxIoBlpq2gd9rn+kI WED2RC8w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q1Pjt-003UQV-1Q; Tue, 23 May 2023 10:59:37 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 83490300338; Tue, 23 May 2023 12:59:35 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3571220A99311; Tue, 23 May 2023 12:59:35 +0200 (CEST) Date: Tue, 23 May 2023 12:59:35 +0200 From: Peter Zijlstra To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Ricardo Neri , "Joel Fernandes (Google)" , Len Brown , Vincent Guittot , x86@kernel.org Subject: Re: [tip: sched/core] sched/topology: Introduce sched_group::flags Message-ID: <20230523105935.GN83892@hirez.programming.kicks-ass.net> References: <20210911011819.12184-3-ricardo.neri-calderon@linux.intel.com> <163344312261.25758.16010066552550079330.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163344312261.25758.16010066552550079330.tip-bot2@tip-bot2> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 02:12:02PM -0000, tip-bot2 for Ricardo Neri wrote: > index 4e8698e..c56faae 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -716,8 +716,20 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) > tmp = sd; > sd = sd->parent; > destroy_sched_domain(tmp); > - if (sd) > + if (sd) { > + struct sched_group *sg = sd->groups; > + > + /* > + * sched groups hold the flags of the child sched > + * domain for convenience. Clear such flags since > + * the child is being destroyed. > + */ > + do { > + sg->flags = 0; > + } while (sg != sd->groups); I happened to be reading this here code and aren't we missing: sg = sg->next; somewhere in that loop?