Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3093944rwr; Sat, 29 Apr 2023 00:07:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Jp0qrUUz8H5c+RToCk4KlVkC7GBEW4/3n1Igd5fryhk6246+wz7OjCzcWrdJqUKSsiMSc X-Received: by 2002:a05:6a20:7d9e:b0:f1:f884:f0dd with SMTP id v30-20020a056a207d9e00b000f1f884f0ddmr10130010pzj.2.1682752067190; Sat, 29 Apr 2023 00:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682752067; cv=none; d=google.com; s=arc-20160816; b=OaLpwhJz8kQAZyk3LlTnuzwtTd2avd1lSYN5JCjYi+Z/Af+pn/Y3RLn9haXHScv/1S omVQrJ6oCma4Lq5fTqHj0NLL7NhZtnyR5RjehR7BrRt87BiswwvVLocEqEN2idB8R7Le YEdKZnTMXohlCe1DuiGlL/xy3ywQ6Oxh85lIfCgPa60YRLkwD6b1DayqVng7+2iQgGln sv5+/pDFUA1jXa1Fxts9txiL5ugHXyZmkP9YQjS+j8MTUuEkPGIeOcLgsdw0YAc2dzJC HZsPEKfKWyRoXRdI8pNv7jvoZkY1fSjZWO/4ExgRbLGYsY/Gb0U1AbIQZFX9efD7COng 9SzQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=dsrsUmlr1ov5EDpYQZRfJPTgGycp1vV5Zj7Lyz1c0zQ=; b=rmUA4y/7Ug48A2FypDmmQmdUSXpZuIsAgu/6BwN9RuoxtPJxPY1FCu+euN4rJE41nF Q45+HxEzTXHfEEWkixeYTvqwV9TZcicjcaaLuG4Q0AWZr0Lok1AfC2GccFzSJG5QDjnz yWARnilw+wk92b22sisfVx3S2ZXgroTymECaREGxPAcawqcJ39SIuouZhedO7UNpQ3nT K28w0TVF0/XCS4wA+bB4EzsuawcXUIzEbLPKrYbcLr0842t2yZY6TrzvUfqzOeHbVDx6 QjYIcOWLMA+maZZ2yNQOIj2duRBVM73VzG71cn7I7Dnjt6mg0zLIrGZE4fakdkNVhtRQ /QgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="NU8A/682"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a654848000000b005289d0633d6si6304347pgs.498.2023.04.29.00.07.33; Sat, 29 Apr 2023 00:07:47 -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=@gmail.com header.s=20221208 header.b="NU8A/682"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347198AbjD2HD7 (ORCPT + 99 others); Sat, 29 Apr 2023 03:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347317AbjD2HDt (ORCPT ); Sat, 29 Apr 2023 03:03:49 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B24744A4 for ; Sat, 29 Apr 2023 00:03:33 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-94a34a0b9e2so97220766b.1 for ; Sat, 29 Apr 2023 00:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682751812; x=1685343812; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=dsrsUmlr1ov5EDpYQZRfJPTgGycp1vV5Zj7Lyz1c0zQ=; b=NU8A/682x8p5SoxJqfgHtgdo27SzAJUdk+y7kbffXte7lptFP69Zf0OHYIJp+XjvFg jhAiZbHujUkFJ5lytv8wMocbt6ECPVP866NLEiUVwFT5jRtEAxSU+h8FSKQw8YJ4TKlg o2sWRy4gZ7jHl3+J7RXxXBHKLgJGOZuyqqizwOiwSLPXzRvFfMUbpIPf92qZ0aKb4HMs 9PAdeZYxdA360q2WlnKS08Rx/RRX6F3UU+jCGa0+C2NqZJgP5fYGqF1GmkBpL3IqYoSe kcCVL4qxTkFx5OUKek2zq108piFkLcrTld9dTIcYxVB45UVD523ZTq6BfKpA91h5ppOK oHaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682751812; x=1685343812; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dsrsUmlr1ov5EDpYQZRfJPTgGycp1vV5Zj7Lyz1c0zQ=; b=PuJU4xxueOfA4zfoXPS6WhcMp/71cW3IVhey91KV5prz4SV6vlmWOLiQTO3bPIVUae LzjwD95dabcubPNyGeR2ira+VtX4oNHyLsWpj98cr9qBJ18vZVmQ0fKwZA8tRLkkAqRS Oz7hmbbVJ34FrwA6PZpcBfnKqI4nWTzMWEIrtlV3ylCmjB6bNC3DcUJ+uquDH3Jjjl+b Naq5KjDwbtJk4wdBmwrZBSQ6J5AVerOGOHX2AuZ9YuXXmNtk3Bg+2b4wBZYBMMPqOuxC ZtiTFLZrrdgi+nXrIM/hF2QEqcCePTggflzQusuYvSMD07DGT2Je8uzZmNRZDajW9RSK vWCw== X-Gm-Message-State: AC+VfDxJi372cDQyXkbFQvrAVv6wKi/Z9qOAqmbNFl3/wVncMB+nOVy9 rj8Mbm+4JG4krUP32JRman0= X-Received: by 2002:a17:907:16a9:b0:94a:4fc5:4c2e with SMTP id hc41-20020a17090716a900b0094a4fc54c2emr8140307ejc.49.1682751812045; Sat, 29 Apr 2023 00:03:32 -0700 (PDT) Received: from gmail.com (1F2EF38A.nat.pool.telekom.hu. [31.46.243.138]) by smtp.gmail.com with ESMTPSA id n2-20020a1709065e0200b00951755d0c79sm12236592eju.104.2023.04.29.00.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 00:03:31 -0700 (PDT) Sender: Ingo Molnar Date: Sat, 29 Apr 2023 09:03:26 +0200 From: Ingo Molnar To: Mathieu Desnoyers Cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Borislav Petkov , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider Subject: Re: [GIT PULL] scheduler changes for v6.4 Message-ID: References: <3f452ee7-6430-e7a9-590b-b211ad4c7ea5@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3f452ee7-6430-e7a9-590b-b211ad4c7ea5@efficios.com> X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 * Mathieu Desnoyers wrote: > On 2023-04-28 18:02, Linus Torvalds wrote: > > On Thu, Apr 27, 2023 at 1:51 PM Ingo Molnar wrote: > > > > > > - Fix performance regression introduced by mm_cid > > > > This causes a conflict with commit b20b0368c614 ("mm: fix memory leak > > on mm_init error handling") that came in through the MM tree. > > > > That conflict is trivial to resolve, and I did so. > > > > Except I also checked my resolution with what was going on in > > linux-next, and it's different. > > > > I'm pretty sure the resolution in linux-next is wrong, but I thought > > I'd mention this, since clearly this wasn't caught in linux-next. > > > > Or maybe it's me that did it wrong, but hey, that couldn't actually > > happen, could it? > > I've reviewed both merge commits (c79e0731da from next-20230428 and > 586b222d74 from master) and I confirm that your conflict resolution > is correct. The one in next was wrong. Indeed - mm_alloc_cid() happens after the MM context has already been initialized, so the fail_cid label needs to deinit the context aka call destroy_context(). So the resolution by Linus is the correct one: mm_destroy_cid(mm); fail_cid: destroy_context(mm); fail_nocontext: mm_free_pgd(mm); Thanks, Ingo