Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2727519pxb; Mon, 31 Jan 2022 03:02:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCRlqPrQt+ZNinRuz2pc3tznIaAF/GQ6L4IpCzK/JPRu9Sj2EKT+UETO+XG7+v2IuAhJ0Y X-Received: by 2002:a05:6402:3513:: with SMTP id b19mr19354227edd.79.1643626979059; Mon, 31 Jan 2022 03:02:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643626979; cv=none; d=google.com; s=arc-20160816; b=v57AI9HG57wuxxGK6JcVyqMWl6KjV3B/oEwe9jR372GnDy3HDmZjwiYMdSVAwf5iCQ /hxCDgCRNH0b5zVrYsMIeL/hp9wtusAHjBY/fvc3dBm4nGHeaUB+i4uSn399Cyplelxp U/qnZwy9TslvV5VSXXawc40lq/oU54tGWOl5Q7fa9VBDeAl2YTTO3d9NlRP1EnAF6CSf EU7Ok5tCdOCF2gm0bjlfOitPGq5wGmAWLqPFCG2D4ZxNOw+gBjz606dwtu1FzcUcR0bM c7RMfSdoJAT4+BaszC6jw24fDTVA7Zl2a7fR1TCtzwVXsF30lVVrbhmQ4f7D9tNcexOa aW8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=XOBjo9P4P5QXbaTzEPxUaN/dHjWwd81pn2JDgJBu6Nw=; b=TRlTOe5Rbk14gsDGhoLk90O+pq1iMDtKP/bR3/jpG5Ycs/NzqTit6A488XfxGUV8aQ ZUheukJq23cp5JC52MrBfEuxhsLCqHo389rXmZ1/sdvBvaUWmYZ+lxnwqN3hgRzJBsu6 8iAicZPh1OBDEylQIhO8nm6qqMDQFDViKDz/Mo0y6q/5Vy/6TZfRtpY6pQ2c1YwQobKk 9yAnIToVOE1vNxtPhrmlxp5m8PGXjIQ1FA/JUqt/aD12viWv31zfUSXT01rEKrBuF3hY z+hfyLTD1BcW3mbXeUSyng9Tnivi1gbWpuHBsziclzaF8yXBUG0lYRi44T2U0kGDMaEP APuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-52-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-52-rsa header.b=RXZkQsc2; 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=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si8899219edz.31.2022.01.31.03.02.34; Mon, 31 Jan 2022 03:02:59 -0800 (PST) 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=neutral (no key) header.i=@lespinasse.org header.s=srv-52-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-52-rsa header.b=RXZkQsc2; 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=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348942AbiA1NTi (ORCPT + 99 others); Fri, 28 Jan 2022 08:19:38 -0500 Received: from server.lespinasse.org ([63.205.204.226]:50591 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348606AbiA1NTJ (ORCPT ); Fri, 28 Jan 2022 08:19:09 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-52-ed; t=1643375406; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=XOBjo9P4P5QXbaTzEPxUaN/dHjWwd81pn2JDgJBu6Nw=; b=Zgl+0z8dPqYhAgCkfq3ZaZLo8J9FklZBrFYZ4KUxrJk41QL0gHK48EflaTggGi9/FdgST /d9N/2pIOp1kt5sAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-52-rsa; t=1643375406; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=XOBjo9P4P5QXbaTzEPxUaN/dHjWwd81pn2JDgJBu6Nw=; b=RXZkQsc2fCt/keozAMU/+XTvOIbG+hRQ17sOqDMwCKaDiYIBy5bbSMu1P7SzsdOIgr897 WQ9H4PuFncpvLdHeCZmk3ra+Z6DWX8BPsJWxn6LEiGOKr1JqS0I2+w+I383l8o8/1aZM/Fd qRUP0R0hKcZ1PsULYeWwhiUsYSZFa1GmB1l2PyVhUayXj9CD6nNDa5kiDtFv+C4UW/6/anx VwJbO6oUIWxKuKVbXkpglJtm+UIBFSmE5DYQq3BG2jFi+7KEvYUh2jPlutoQqdgL/vC3ueP shObKmkZFJqxctv+L/84bRkDjWtOFNxoPQCrJmC5bsFMy6MCfCk5rHKHYRww== Received: from zeus.lespinasse.org (zeus.lespinasse.org [IPv6:fd00::150:0]) by server.lespinasse.org (Postfix) with ESMTPS id E3C61160951; Fri, 28 Jan 2022 05:10:06 -0800 (PST) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id CB74720337; Fri, 28 Jan 2022 05:10:06 -0800 (PST) From: Michel Lespinasse To: Linux-MM , linux-kernel@vger.kernel.org, Andrew Morton Cc: kernel-team@fb.com, Laurent Dufour , Jerome Glisse , Peter Zijlstra , Michal Hocko , Vlastimil Babka , Davidlohr Bueso , Matthew Wilcox , Liam Howlett , Rik van Riel , Paul McKenney , Song Liu , Suren Baghdasaryan , Minchan Kim , Joel Fernandes , David Rientjes , Axel Rasmussen , Andy Lutomirski , Michel Lespinasse Subject: [PATCH v2 04/35] do_anonymous_page: use update_mmu_tlb() Date: Fri, 28 Jan 2022 05:09:35 -0800 Message-Id: <20220128131006.67712-5-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220128131006.67712-1-michel@lespinasse.org> References: <20220128131006.67712-1-michel@lespinasse.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 c125c4969913..cd9432df3a27 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3799,7 +3799,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