Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp527868rwb; Mon, 26 Sep 2022 02:17:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NnimxnFWC2QW7vg5B2EuFhY7QyMyQfU7ZINmq2vPWltzi01i2YqbuVbHpzDwsF1+QssNd X-Received: by 2002:a17:903:246:b0:179:b6d0:f8fd with SMTP id j6-20020a170903024600b00179b6d0f8fdmr20329024plh.124.1664183822951; Mon, 26 Sep 2022 02:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664183822; cv=none; d=google.com; s=arc-20160816; b=h0tvilCZl+t5cB7wH2m4QA/FVYJ3Wx6wlDiToZebimzsMPfyyrJlcoBYK3f3OJAT9/ B8Kl3+wTZ5OMlXcpDYwoKGo1euMJ8JBe4kDsRbycUI/xCuTcnqpxFRrjiqWWERSDlIxe VohCWYpHhGajQfqcTcmayJ7zVUpFSYfJ9KxEwQcNUvfnH3oioSlYDvLjiG6PKFRB5ZUo aMBQvu/GDcVt9WRwK0JHv8uH9M3i1kVZ4WrO6vJKNZ/XmPHGZFDnwvBaVc7sR+h/6Axx U/ZsnWuBduOG0T+8+OJNbzw2XBHqZvNJcM7d2uYfMgkYFJAKRtqBQGcfAiwBP7vEov7C 8Fxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zx7C8hUC8uJlj/LCHHs+NE++TUFzrNQZEMGrjupRGvk=; b=UNICGi4GxEOKBngNxV7h3yYTVsYoR5PcChMtXIacQRznIfMRxccsE0/kvqvBAYI5tu k6mTEWa1/58eeT96Re6P7YEJi2GzlHRtBU0g5FY3Ydrz8J0hOIXSWMSkLBJtfssc+RZd GAsM6XMcs62i3FmGzvy84tD3BnS09IjgUncpOEDgVlUVAJuMIzJNQd58LEIuI0xon1mL X9BnUGx16ihaqUrlS9bbNXxwr5Jk8XyaYIoPWm7veFhpeX0qk5ReM8T1DWn7ENHdoUfB 2piX9FEwtd5M6AcSjkvLngyyzx86f4NGC6N3B0Vae/1vlZgxfkKtHvj/GuSoWCwAlPre Fpjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=cJO0Q8RY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a637008000000b00412607fea43si18394100pgc.617.2022.09.26.02.16.51; Mon, 26 Sep 2022 02:17:02 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=cJO0Q8RY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233811AbiIZIrs (ORCPT + 99 others); Mon, 26 Sep 2022 04:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234558AbiIZIrh (ORCPT ); Mon, 26 Sep 2022 04:47:37 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9521EADD for ; Mon, 26 Sep 2022 01:47:36 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id i15-20020a17090a4b8f00b0020073b4ac27so6033991pjh.3 for ; Mon, 26 Sep 2022 01:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=zx7C8hUC8uJlj/LCHHs+NE++TUFzrNQZEMGrjupRGvk=; b=cJO0Q8RYU1eD67h2oj6HcH/iziJoZ6USpaIH1IiQarytU6idHx8j/Omw8bQrsm5er4 5LWNuQ4Fiqi6ndRYsjqBT6JDrSW/nEcID5oRXSuD9OGqpbrB6RqfiDnF6ocf5XBNlbRT 0ah+BisXy/oF+XVBCUdMfh68Acus18622T4d29MAgJ8fMVYAGpDWqIcl8xLo4FG3ZqQX /oaWtzcOuvIfljt6cTUsAdaQt6rfCMIdDCOcCmYhc4ytYm89EB1JnqPsRVDt+XcLLqwp ILBRTWUu+7QO/NyXOQ/bQmd4jpJB1TjisGWrJpYl1P4PLAR9tRMdfXN+CCJCly7aL/M7 G8gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=zx7C8hUC8uJlj/LCHHs+NE++TUFzrNQZEMGrjupRGvk=; b=UmYRRmx4qrGezsVUm9bYXAsNny/psKZPFaiaW71ygIp6sQTPWtfRZN4d2edGOyvhWW TjyE0KNsUNLKdbG0nkP2oNQ/a6shroXNpwAxhOIbUQTUOPL8YDD+dupZkHagJ6vVxKBi qflE2dyGZU3aTUhaZqK0fXTiFXaroN+FTTTMxVwRzrjQEvnZSvEYAX+jQYSOPsPvV7+9 lsP2uVIemPcwhfggjnSFcGKK6mkoxR9MSbKTmOsYWE6KWbB8GrcV5d2XmJSYpjlrGFOT x7ovB7IZv6YERw/gtYSZbWVSO47cdgRGbvkClqxBdqI6+hoUT8l5QVcbTcjiWOwNqkvc CL2w== X-Gm-Message-State: ACrzQf1pQLDCyZ1Ifc9IycSVGzf8vv231n8kCtJhb4Bdt2MufLj36+j9 MlW+OWUGcaLvyGFp4q4A9ixxhQ== X-Received: by 2002:a17:903:230b:b0:177:e667:7862 with SMTP id d11-20020a170903230b00b00177e6677862mr21151572plh.154.1664182055627; Mon, 26 Sep 2022 01:47:35 -0700 (PDT) Received: from [10.255.6.155] ([139.177.225.248]) by smtp.gmail.com with ESMTPSA id a8-20020a170902900800b00178acc7ef16sm10665577plp.253.2022.09.26.01.47.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Sep 2022 01:47:34 -0700 (PDT) Message-ID: Date: Mon, 26 Sep 2022 16:47:28 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH] mm: fix misuse of update_mmu_cache() in do_anonymous_page() Content-Language: en-US To: David Hildenbrand , Muchun Song Cc: Andrew Morton , Linux MM , linux-kernel@vger.kernel.org, chris@zankel.net, jcmvbkbc@gmail.com, maobibo@loongson.cn References: <20220924053239.91661-1-zhengqi.arch@bytedance.com> <3A09E40A-E2C5-4C6F-8550-DD0E17B7DAB9@linux.dev> <48590f80-fc58-bf67-5acf-082880a607b2@redhat.com> <1a69af58-b9d2-6319-9db7-f92428b87612@redhat.com> From: Qi Zheng In-Reply-To: <1a69af58-b9d2-6319-9db7-f92428b87612@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 2022/9/26 16:42, David Hildenbrand wrote: > On 26.09.22 10:41, Qi Zheng wrote: >> >> >> On 2022/9/26 16:32, David Hildenbrand wrote: >>> On 25.09.22 03:43, Muchun Song wrote: >>>> >>>> >>>>> On Sep 24, 2022, at 13:32, Qi Zheng >>>>> wrote: >>>>> >>>>> As message in commit 7df676974359 ("mm/memory.c: Update local TLB >>>>> if PTE entry exists") said, we should update local TLB only on the >>>>> second thread. So fix the misuse of update_mmu_cache() by using >>>>> update_mmu_tlb() in the do_anonymous_page(). >>>>> >>>>> Signed-off-by: Qi Zheng >>>> >>>> The change looks good to me. However, I am not sure what is the >>>> user-visible >>>> effect to xtensa users. So Cc xtensa’s maintainer and the author of >>>> 7df676974359 >>>> to double check this. >>> >>> And if there is one, do we have a fixes tag? >> >> IIUC, there's only a performance difference here, so maybe there's no >> need to add the fixes tag? > > Maybe be careful with the usage of "fix" in subject/description then and > point that out in the description :) Ah, will change subject/description in the v2, thanks. :) > -- Thanks, Qi