Received: by 10.213.65.68 with SMTP id h4csp3901318imn; Tue, 3 Apr 2018 12:42:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx48F2EkqaCXuE54Uj8Oy0GPu/RiKydcvUqk4zSQHPv0S2q2jqtyxTbAX9DoNCASL5JeuaHT0 X-Received: by 10.101.66.6 with SMTP id c6mr10169681pgq.35.1522784577609; Tue, 03 Apr 2018 12:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522784577; cv=none; d=google.com; s=arc-20160816; b=jMhOfm6rmv+iy+/Nk+zmdzvFPtWLmYZ/3BnO8qON+ODy5ep+hW7TTUbZWZLNJlCK1q BC5Ye7j3g6dokQbRZ3JfPedZYfUCZol7Cq/4bzyoHGUi1kh3zW2RQBeNELpVP4W8Hs3i qIruPmckeLBfiwXJPyUaxbhVMnsxQ+4Azuop/uN8H9p2ac2RGFIvyvMgsLPDrQkgSlon 1s7KrCRtVJ8i6mEGV8ads+jAmpd3IpdHkVH8qzFr6PnoeHFaNXPITL/x4IJqeHGhPoYL 99OyjRLy2Y01fLIHP7cWDd/TwKDh5uRUMIdTsOjhaWX845SgDTaeAtcAUo9ROSv2eoQc YPGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=OS2CSMKKEizQwEpfSL6MBZEaEU0F3Pb1g6t+kYpqGTk=; b=WlSUyubdIVgrm6OkWj+ZRQz9gAH+UsfSPfbLOon3SeDaUcr4ljSos8UTQOOnHfEOY2 MdAxKr+358wq9ubDp6QR+7rmYcgPGDwzHtH/6Erj3kTioTPLOuxfJM8kYt321nwzAvFF 4qvB0vfBiXKZlU8S1y9b+iTE8XYhNVTpasiyATzhGAfr8pgcbKMC3QCp3QizmCuPdLwY XdRjFqHgEzin+i4/5VhjSo9BWDGqeI5rDlII/5mADuc2TPJuryBBkIfRtvaHPVeH5Uan uDXkRm+wMP0CdndTnH9fwtMeJU2rWe0ruBcxNBylbFRgY8Vby8p9d/H3+OaSZ2OfFdVs P+Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u184si2391924pgc.699.2018.04.03.12.42.43; Tue, 03 Apr 2018 12:42:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753196AbeDCTjd (ORCPT + 99 others); Tue, 3 Apr 2018 15:39:33 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39008 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752478AbeDCTja (ORCPT ); Tue, 3 Apr 2018 15:39:30 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 01B094022909; Tue, 3 Apr 2018 19:39:30 +0000 (UTC) Received: from redhat.com (ovpn-121-77.rdu2.redhat.com [10.10.121.77]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A8E452024CA1; Tue, 3 Apr 2018 19:39:28 +0000 (UTC) Date: Tue, 3 Apr 2018 15:39:27 -0400 From: Jerome Glisse To: Laurent Dufour Cc: paulmck@linux.vnet.ibm.com, peterz@infradead.org, akpm@linux-foundation.org, kirill@shutemov.name, ak@linux.intel.com, mhocko@kernel.org, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v9 15/24] mm: Introduce __vm_normal_page() Message-ID: <20180403193927.GD5935@redhat.com> References: <1520963994-28477-1-git-send-email-ldufour@linux.vnet.ibm.com> <1520963994-28477-16-git-send-email-ldufour@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1520963994-28477-16-git-send-email-ldufour@linux.vnet.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 03 Apr 2018 19:39:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 03 Apr 2018 19:39:30 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jglisse@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 06:59:45PM +0100, Laurent Dufour wrote: > When dealing with the speculative fault path we should use the VMA's field > cached value stored in the vm_fault structure. > > Currently vm_normal_page() is using the pointer to the VMA to fetch the > vm_flags value. This patch provides a new __vm_normal_page() which is > receiving the vm_flags flags value as parameter. > > Note: The speculative path is turned on for architecture providing support > for special PTE flag. So only the first block of vm_normal_page is used > during the speculative path. Might be a good idea to explicitly have SPECULATIVE Kconfig option depends on ARCH_PTE_SPECIAL and a comment for !HAVE_PTE_SPECIAL in the function explaining that speculative page fault should never reach that point. Cheers, J?r?me