Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp734886pxf; Wed, 7 Apr 2021 10:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMFfzKRpskyYHFCgjuschxr2DbumruwhWunZYWbbkYYDU/n17xS9Q26OIu428TuBa9N/BS X-Received: by 2002:a5d:9682:: with SMTP id m2mr3438373ion.20.1617815592091; Wed, 07 Apr 2021 10:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617815592; cv=none; d=google.com; s=arc-20160816; b=DFdt3TZ3EZDznXM4PE9HWHPQEWE0nntoshJCbym+ztjxIN7Thhc6ZqI9rtwzmxG4LJ sdBZ+NuVrUVMPvQeL80Z4f2QgXCgSa3QRX7P+bLqDnJ4d+YV6smf7UdYgNqe8Gmij/kK tMFT/6d6MzM8b+Ybu+zQLpt2n+pfhxEdWlzvJOdl5YDrMebc2cAcgpvugTs6HhboLgey N20Q0r3qoqoxOqLwXZcKTaQbdsUE5/nlOHDCUkReGZ4859r7fY5hlOiCHnENnb21DYjR gxVwPNtyI5+oWj/9Wq5+MyT88m/0322vMWRIR835QK4SsaXhETgEnRJ8/SaD50br2Ih5 KThg== 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=Tl7c+fKXT/KEyeD0xB/+YiIdgIzXbLApcUUyx6tYhAc=; b=dLLJfy/jTTtJaUI/8EW/ldLdcSGetSM4d9FtvSqPn2iSt8advudz72fJLYxd8RSCBk Cp2bobknyezLuQQAq+8/GjYuxPil6DUTvzJwbD7S5GyvGOL/UK3Yrx9AnU6Wx4DgMAbi CC8H8Pc91iRs12W4soObYmRJb73yjDibuqGaHFZXGjBSCOW8cIF95LRA47g9rH2mBZDt j1RovF/1GIEie+LptInoQy+A3alNk0wPQrRTGH5Z8MdjlUyzL30mAYTEZKOlxg4VVatn hN1szkNh2WjSRe+g4ovq7nDcC/EcRNxPHHg8/4tLYXmvmPy8xxWC3gyO3O0XOR17KfKG da3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.b=FhQJE30m; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-11-rsa header.b=alvJkzgZ; 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 c19si20619611iow.0.2021.04.07.10.12.57; Wed, 07 Apr 2021 10:13:12 -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=neutral (no key) header.i=@lespinasse.org header.b=FhQJE30m; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-11-rsa header.b=alvJkzgZ; 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 S1347891AbhDGBwC (ORCPT + 99 others); Tue, 6 Apr 2021 21:52:02 -0400 Received: from server.lespinasse.org ([63.205.204.226]:50997 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343701AbhDGBvt (ORCPT ); Tue, 6 Apr 2021 21:51:49 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-11-ed; t=1617759902; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=Tl7c+fKXT/KEyeD0xB/+YiIdgIzXbLApcUUyx6tYhAc=; b=FhQJE30mUdou3MxgfjANMalYk0yghDWwQJi43mxwrXTvsJtXHEht3xYoY0uKAJ6JB1ifc I0uHh5I2VEUVnMwAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-11-rsa; t=1617759902; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=Tl7c+fKXT/KEyeD0xB/+YiIdgIzXbLApcUUyx6tYhAc=; b=alvJkzgZCHNhI/J/Oxso+FnyCCyAhh/3VhhOpJiJCr7s9TEQrVPgikpbTw51VxBgDCCQI w7FkTc0lTMUagVapscii/LJG9Zm08jY9YDNgDXUE0z4lW5kR1W+S9Bm7eahNxbSt7i1DF/K 4An6MUsN2GjPOpl1dUda0RSDWa3cLilqgXOLffoFdN0/sfyYZzX5wCQWbvcMLlU4vZczU++ RshCSwV2fhPQrh/qq33PSljbSoowyZ9Hha9n3Tc6S2Z3iQmF0nZ/D/jZQ3zPPrxmYhm2yiV f5fZLHOHzsrbKR0OXKHH9hRON9E8GJ3/o+TyF0pKb2X/3KjsPh7xbhDfDKOg== Received: from zeus.lespinasse.org (zeus.lespinasse.org [IPv6:fd00::150:0]) by server.lespinasse.org (Postfix) with ESMTPS id 7C44916022D; Tue, 6 Apr 2021 18:45:02 -0700 (PDT) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id 68FC519F320; Tue, 6 Apr 2021 18:45:02 -0700 (PDT) From: Michel Lespinasse To: Linux-MM Cc: Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Rom Lemarchand , Linux-Kernel , Michel Lespinasse Subject: [RFC PATCH 03/37] do_anonymous_page: use update_mmu_tlb() Date: Tue, 6 Apr 2021 18:44:28 -0700 Message-Id: <20210407014502.24091-4-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210407014502.24091-1-michel@lespinasse.org> References: <20210407014502.24091-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. 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 5efa07fb6cdc..8ee4bd239303 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