Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4287026pxu; Wed, 9 Dec 2020 13:08:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWSp8oUJjJ3Zv7RYBy5ipiQpdEEWCx4Euz5DZE/cDykMvz/NCxFhTp5tMxUFzKtguDf8hH X-Received: by 2002:a17:907:2111:: with SMTP id qn17mr3535794ejb.525.1607548101347; Wed, 09 Dec 2020 13:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607548101; cv=none; d=google.com; s=arc-20160816; b=pExJwYO565KNApuI/LiR28nlKbIAeDfO9PIvfl6S21SEB7LaQ3qjY7eRIoPD8PoKsQ g06+hp+1orDt5C0A2jdhWwRHBJYqgDbM7Ow2W59MVwOaY47Lrn/KhPJdcm+kotuH1q6G nk4nAyOQ1c/um3XGvTE1Q2JpXPwP96UvGt2QBaJwjepuXBkv+9S8KMLGoKWh+uzOAgrQ Kay5jKhFjLXpGWxwxetTD95T5dycGdJQVWtOI5yQgSfGDSoYIhmpPwhTvo6fJfqv0iN5 pA54Eg+EwL6E+JfUdVBaq0B6K4ysaH2wLBqpjga6Au9kuSeNvrivkL2kJgFexU40ZoS1 pEQw== 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=WwSKHrmHmEJGWwO8q35qAr+m2UELcccwDz7jvO6KV+0=; b=cvZ8GNNPMrMYFJ5stNaWkGIuYTXWhaAdVPPLoTbUXaTWD3RxqUVEb5Fw/M1oo+fdCl 15pjQBI55xH/DBa4qfdI8Hf/aOOY3hiXuWk3Ws2exZqZE8jHWahzNgon0mrTHZ75l2Rb 0pk6eJoiFEd97NvcAkqpobCZ2D9e/WIfzvlJa3Kc0OvCHKwMqwXQ+4KDPVt5+5Vf/xov BAruAu0Lvgj+oUcv+vJEqxYn1+yo9AZlWXeK5kUNVe7p+3db68sSuCdBg11Ok6kRTtMr sUerCuKgP+I8h0y8WpCtqqEeaqPHptadauiZYkQNS7kJ8uVILL5t7vCfd5Unwe5PKh4b DpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IGmsBh+7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh2si562027ejb.627.2020.12.09.13.07.58; Wed, 09 Dec 2020 13:08:21 -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=pass header.i=@linux-foundation.org header.s=google header.b=IGmsBh+7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729913AbgLIVFY (ORCPT + 99 others); Wed, 9 Dec 2020 16:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgLIVFY (ORCPT ); Wed, 9 Dec 2020 16:05:24 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDCE9C0613D6 for ; Wed, 9 Dec 2020 13:04:43 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id l11so5095620lfg.0 for ; Wed, 09 Dec 2020 13:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WwSKHrmHmEJGWwO8q35qAr+m2UELcccwDz7jvO6KV+0=; b=IGmsBh+7AADorFbyaW+61TYjRjnM3bZ+NPiz+O5Dtl9xXc7x2VzpA6Qi+F5WOMjgq6 uMLjKW4msweI0isgQir1zt5KsIkczApET555uk/vdNU6Y07CL9TzUCflnfZuK/y+iqje yIw7qBjbKEo3ew5HYtrYmvAXUyDO9SGwq8BK8= 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=WwSKHrmHmEJGWwO8q35qAr+m2UELcccwDz7jvO6KV+0=; b=nXKHSG8Aza4nhU0pM8PEUeLeClcFXehuXR37cavWgWyKkq8vls0BNoTiy1QP39uvBD RtXOzeT20Q5Xt6nw0LKk2iU3XLEVbMGH1nhIIll7KN0ArgeKIi/ARa2iGWfPEGlVbUdn J2x4epcEiQMhInwPGZvlfka09zVSM8K32UD+0gC7zbk0UCM3nTVi1K64Hn2VHkV+V2DR Wwv0mXBUoY+9aXsaWsb69rO8TqYpHdxsZHc3GK3Qez6wa1tii43RooVzOU+owSvV1DIV nqkbKuFOoedJIG6Zo04//Hlqr9bokue2r4HdBVVRbrH5R7b6p5dV2RGUmwVS/2SJHOOn Vkzw== X-Gm-Message-State: AOAM533oQKkVm5Rei77w/j480LINZKiFAV2mnpgetmXgbc+zBIekatxt uxwHN2l6O+mrE7p1fjAeeruVVri1cbFSRA== X-Received: by 2002:ac2:43c1:: with SMTP id u1mr610299lfl.38.1607547882022; Wed, 09 Dec 2020 13:04:42 -0800 (PST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id g15sm286097lfd.42.2020.12.09.13.04.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 13:04:39 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id t22so4155668ljk.0 for ; Wed, 09 Dec 2020 13:04:39 -0800 (PST) X-Received: by 2002:a2e:6f17:: with SMTP id k23mr1768604ljc.411.1607547879048; Wed, 09 Dec 2020 13:04:39 -0800 (PST) MIME-Version: 1.0 References: <20201209163950.8494-1-will@kernel.org> <20201209163950.8494-2-will@kernel.org> <20201209184049.GA8778@willie-the-truck> <20201209203203.GU7338@casper.infradead.org> In-Reply-To: <20201209203203.GU7338@casper.infradead.org> From: Linus Torvalds Date: Wed, 9 Dec 2020 13:04:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting To: Matthew Wilcox Cc: Will Deacon , Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , "Kirill A . Shutemov" , Vinayak Menon , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 12:32 PM Matthew Wilcox wrote: > > If a filesystem has put an Uptodate page into the page cache, the > rest of the kernel can read it without telling the filesystem. XFS does the same thing for xfs_file_read_iter() too. Not that I disagree with you - when you mmap a file, once it's mapped you see the data without any lock anyway. So it's all kinds of pointless to serialize the page fault, because that's simply not relevant. The lock will be gone by the time the user actually sees the data. But hey, the XFS people have their opinions. Linus