Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2926437rwb; Sat, 24 Sep 2022 18:54:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pvrsJaOQ0jPYhjwEOVHFGMrPcwFWj76FCOfu8YU4DDlD0LlQNexv4bBBvV/xLYeMKi3Eq X-Received: by 2002:a05:6402:274c:b0:44f:334e:1e11 with SMTP id z12-20020a056402274c00b0044f334e1e11mr15934790edd.304.1664070886280; Sat, 24 Sep 2022 18:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664070886; cv=none; d=google.com; s=arc-20160816; b=VRUJPVR551HCfpQh9kEkO9ec/epyltpD67jfkfdDpezbJYBOejwMQvlxRlSOlinBkq LXItGpHmraZdYGWQtQxUnr7NHFo1dv8uYQBN0Gs/LAXyKaCghlinbq5A8eADpnhUdT45 KqV6SfJD+c4ubfz6O2Lfd2dX4YIWU9bnQAqJcfPJC3ExX0LAM/0t0t6Cdf21ZHZrNTyc CXGNYR9AP4iGumdq3qxRv86/g8zYCW6xMTZN8GA3D25N34KWwDDsXc3WVLszluA7Xokn 7+WcDZXq3geA79xrj1X6+Q2S0Vkw/xfEupPp0ds3ulGg2d70JPhfPcgnysHKsqL4SarM pxaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=4WXzLSYTukyduxymcxvBjNdNw/QHJy+xi6+TnpxtGIM=; b=tVuznizeo5TTxcTFMMjZB/v7GEX6QbrzmIGZDVNBcdt27wirtSuN+vfecIUaXcHOzz JV8uj5y0GSoIbvp1K5M594GsIkKVREX0o338m40qtORz7muBrhraJ2tNFbNYVgonWsB3 BC78iyyY0z1OXTOHa7+68YwHgHu45ca6F37tOOUG98csmbnjqXKuE/5ZLHB2SqvxHJxA Om3ZaR1h2w1yWNKJlYpjPORF9XYrZ6o7go6v7zoCVptAAv1rK8P04ajk1n4hr1pjt+oC fROdjuuNtglUeMGj/W9y+vTDnsaWYggW+nI47RXxN6I+JaJj5Fzv8x9R234zChaXzVcb 56lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=m8kKGGgp; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a170906255a00b007392f9ad702si9407937ejb.741.2022.09.24.18.54.20; Sat, 24 Sep 2022 18:54:46 -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=@linux.dev header.s=key1 header.b=m8kKGGgp; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbiIYBnr (ORCPT + 99 others); Sat, 24 Sep 2022 21:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiIYBnq (ORCPT ); Sat, 24 Sep 2022 21:43:46 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE28A43E53 for ; Sat, 24 Sep 2022 18:43:42 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1664070220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4WXzLSYTukyduxymcxvBjNdNw/QHJy+xi6+TnpxtGIM=; b=m8kKGGgphu59i/ommAnhzqGoS4nnOgVqCBVLFxqa3W4mhI3XPVa6npODzCKdCnrKX99M5E PetI1lwRWDcjo8x0wA9mx8KSOGwcMccNjXtXYM5mqHyIY1dTq1Wjb5jW3BciUUCzVUDSFM if0SrB7G1yWVsC6pFBU4rp70vzCsArI= MIME-Version: 1.0 Subject: Re: [PATCH] mm: fix misuse of update_mmu_cache() in do_anonymous_page() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220924053239.91661-1-zhengqi.arch@bytedance.com> Date: Sun, 25 Sep 2022 09:43:34 +0800 Cc: Andrew Morton , Linux MM , linux-kernel@vger.kernel.org, chris@zankel.net, jcmvbkbc@gmail.com, maobibo@loongson.cn Content-Transfer-Encoding: quoted-printable Message-Id: <3A09E40A-E2C5-4C6F-8550-DD0E17B7DAB9@linux.dev> References: <20220924053239.91661-1-zhengqi.arch@bytedance.com> To: Qi Zheng X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 Sep 24, 2022, at 13:32, Qi Zheng = wrote: >=20 > 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(). >=20 > 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=E2=80=99s maintainer and the author = of 7df676974359 to double check this. But anyway: Reviewed-by: Muchun Song