Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp97632pxj; Wed, 9 Jun 2021 17:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3Ym4K5pbdjBfawWDTyFUwYrQpRM5tOxanVrDhmpQn9v9TzJPZgI806lGn2Vvv49vexrw7 X-Received: by 2002:a17:906:b296:: with SMTP id q22mr2113667ejz.397.1623285682266; Wed, 09 Jun 2021 17:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623285682; cv=none; d=google.com; s=arc-20160816; b=GZRZ7Bj9gcf0YsjV4tx8WgIJnK1zSLBh3Bz8pnlF1a7IQGx8cOJCme+F6JIOE5yqP2 ocVBtdSNHIN3OfXSg140IQOpg2i6nZF4hcTSUX55Tls5GhZKRcisDoYEEfHYfbcFUovo C3aAsuJKs9KdUHS3peX07g6A/DiSqh3O7fIrDRM9fca+0UaelTdkxIQ1jekUtM9Ekp0a TbvXrIme16iHUsKWIQNUBDfVaB1CIXLhWpBPuiihvyR4iUtvAmW3Yo4nbrBpb+JzQa1b zM/n+X1whNe13IOFk41nwbiHuTS9GWWRf+eDZIBfIrZqiX/jrs3Dm1hnlUhyV1IFFoyl 9Fsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=p2/f6S74QIZa+VUWQuoSSzousj3I48cGhlMI5oyO9WI=; b=rhW4DGlQ2auWh3Ajyqt8/xpwJ53XLyVjG49xTULxAvN4NuSmSG73JaiKiuThwVAjea wAI7mebUIAfDiBgzzSMwdxD3EWWSWbo55EP8dxY9J9S/tYHfT0/MDNic8at4YpgE2/oH NblCQC3gy3gHD41oBb5bLgQfktQxu15B50FPGNoFNR6JNgqItjcP7+2M5TS13Vwn5+Xe JnobaS6KMEIzt3G/Ln7yAHRJOVbbXV6H7ZSitVePeiuZ8dnQv9XDogLST+KGj2/zE4fO Ax4dh3SlRJH8Au090FFb95Sm4l0Sm28oTsDaLuqx7qNlLxcbTP6bxbZUOj6my8pHyWhO 5FBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jNmHpI0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz26si1021044ejc.61.2021.06.09.17.40.58; Wed, 09 Jun 2021 17:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jNmHpI0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbhFJAkh (ORCPT + 99 others); Wed, 9 Jun 2021 20:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbhFJAkf (ORCPT ); Wed, 9 Jun 2021 20:40:35 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92344C061574 for ; Wed, 9 Jun 2021 17:38:40 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id e10so38114099ybb.7 for ; Wed, 09 Jun 2021 17:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p2/f6S74QIZa+VUWQuoSSzousj3I48cGhlMI5oyO9WI=; b=jNmHpI0GwtQj0ih3Zrhtz0gf2nBWSoCFrw340eiHQOXdrijafJubsgHdqXhRpBb7i4 a9PmfXgVyqzkIwJo1LvHtiF35nXLjTyxsT4tPjfUQVq8KevuiF/CZ8j0nwCw1wqt+yi+ r7sEVtkCbgdFvQD0hkYWtn0CFCtBLxu0xd7IlUhadkGPDvrV0h2x02IDj9vCsFCp/8P1 U9aYtq57VWOMteu5rQf1G9XUGEJ1a6JtBRSVdfEenjlSRQFaWeEruJ8TKbq8Q4b++gZI QmY/jL4KTmbAujwrChfUbVIa+73gkQZwh8wutS/Jxf5ubxZSZ+MBUPWWs8sMcoMo+W9Y uNzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p2/f6S74QIZa+VUWQuoSSzousj3I48cGhlMI5oyO9WI=; b=dkkN52z5OSHR8neQoPcb+kD7KOU/79Z8lGQnOuJEdvd9G2kL1771eNuzYnSdfx1KNy YwHBtHY9C7tbI/KIyPm8wFZX0z27IeYeOxjRQTXCoGMIfVFguoPg8/YfdcuREdeTTbVp kMcdiMrzZ99tdjKetT+U6hafMBag9ufmGzKstI29F0qVobZEWs7tLBZKPQEfYX/LneHn fgVbI5gJ9ZYRLVwoyHP2zo4FUvh2EbMn6eMQBvC/6nz4Ce+2tMwNKRJG4nvCPjhs2/Iw CPGPBi/WS4dvh6MDGQ8g1VN7MY1fjFoKnNK4s8COUg3fT53gyTog9X4TqVd/59Z60/0n 6uFg== X-Gm-Message-State: AOAM533+2B8wVlvg9KXH9+XvLPPZLDGTfvk2Bz8007k1nezUYfMklyse 96MeyIkxK73TdIrIFR7yIUyGuyPf+C+t8zNnKS1J6Q== X-Received: by 2002:a25:ba08:: with SMTP id t8mr3563826ybg.111.1623285519598; Wed, 09 Jun 2021 17:38:39 -0700 (PDT) MIME-Version: 1.0 References: <20210430195232.30491-1-michel@lespinasse.org> <20210430195232.30491-5-michel@lespinasse.org> In-Reply-To: <20210430195232.30491-5-michel@lespinasse.org> From: Suren Baghdasaryan Date: Wed, 9 Jun 2021 17:38:28 -0700 Message-ID: Subject: Re: [PATCH 04/29] do_anonymous_page: use update_mmu_tlb() To: Michel Lespinasse Cc: Linux-MM , Linux-Kernel , Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Joel Fernandes , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 12:52 PM Michel Lespinasse wrote: > > update_mmu_tlb() can be used instead of update_mmu_cache() when the > page fault handler detects that it lost the race to another page fault. > > (TODO double check with Bibo Mao ) You probably can drop this TODO. It looks like this one call was missed in https://patchwork.kernel.org/project/linux-mips/patch/1590375160-6997-2-git-send-email-maobibo@loongson.cn after Andrew asked to replace all update_mmu_cache() calls with an alias in the previous version of this patch here: https://patchwork.kernel.org/project/linux-mips/patch/1590031837-9582-2-git-send-email-maobibo@loongson.cn/#23374625. > > Signed-off-by: Michel Lespinasse > --- > mm/memory.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/memory.c b/mm/memory.c > index 550405fc3b5e..59ff65cb3ab4 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -3567,7 +3567,7 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf) > vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address, > &vmf->ptl); > if (!pte_none(*vmf->pte)) { > - update_mmu_cache(vma, vmf->address, vmf->pte); > + update_mmu_tlb(vma, vmf->address, vmf->pte); > goto release; > } > > -- > 2.20.1 >