Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp742287img; Mon, 18 Mar 2019 13:13:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2F7N+vVM1RX/O7wqCAgl0ml88YdUgJc+uxl+n002H2D6ge9ohye3RsujeawRfR8j98C+g X-Received: by 2002:a63:204d:: with SMTP id r13mr19477217pgm.63.1552940034146; Mon, 18 Mar 2019 13:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552940034; cv=none; d=google.com; s=arc-20160816; b=QeXH1EFrp/Llms9SKwgSpHK7xDY9ODZ0Xv2HiKZLiHGbLVbp3RongKTOlnbXE1PkEu xOboAt/aCWpDeE11O6POWkzWdqdET+Z8n0N/ISIpNtZZAYVmuoyoHwgPU5PcgQCDg1ls /RvpzVWE68n6Duwr9QDjOj0tqwXgyiU932Aw36d7r/mai1M/vfFhgOStBp2LD6hG2Eo6 j/Fp84GvEqJfjwqP/BRQnO+zoXEyHXaXb0rhHZtTa6NKISFwI3P5DB5rzneUIbUCHbUm VAacSexiI+8RgSSMrfhSLqD07hjlYTEOQ+VYA6z+WGmNrsXKFinkBKBAZWjjVghbzPbw rR6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iGAUPJJ+Q3A71Lvl21ZNq7fTQp4p5vmBmHlE40N1XP8=; b=OFyOUGXRd3n4ru6pOONkpiMMvrBCjyTQCcA6y3BHoOBHqC0csgjTTP3/dnrzG3f2mN YfaAQzQpPK/YvUoLxHlJ9Vkv44tVbzhdHDCdH2aYzr3oLBwz3dHPEmh73WLvSH6M3mCr YUZo7JaUzaf1P7Bsd/HFzpz3q81qJItdJCIysuY2v60EWRqQlyi+bOoBVPIA28xZisZg JRqZiDIrf1YoD68YSM4DkhxCV47CKwSYEp9Mg+lt9G4r2sHpF0PshGO2wTqwiZz1L+3R wXjWKtzjIpntYhk/Ldqwj3VG4uwiTAijcl2bXsZcYIyZBVah7VgNzmZpT3YNkxM35nYT 2duQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kdfzspIO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34si4539030plf.343.2019.03.18.13.13.38; Mon, 18 Mar 2019 13:13:54 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kdfzspIO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbfCRUMu (ORCPT + 99 others); Mon, 18 Mar 2019 16:12:50 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:16699 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfCRUMt (ORCPT ); Mon, 18 Mar 2019 16:12:49 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 18 Mar 2019 13:12:33 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 18 Mar 2019 13:12:47 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 18 Mar 2019 13:12:47 -0700 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Mar 2019 20:12:47 +0000 Subject: Re: [PATCH v3 0/1] mm: introduce put_user_page*(), placeholder versions To: Jan Kara , Christopher Lameter CC: Christoph Hellwig , Dave Chinner , Ira Weiny , , Andrew Morton , , Al Viro , Christian Benvenuti , Dan Williams , Dennis Dalessandro , Doug Ledford , Jason Gunthorpe , Jerome Glisse , Matthew Wilcox , Michal Hocko , Mike Rapoport , Mike Marciniszyn , Ralph Campbell , Tom Talpey , LKML , References: <20190306235455.26348-1-jhubbard@nvidia.com> <010001695b4631cd-f4b8fcbf-a760-4267-afce-fb7969e3ff87-000000@email.amazonses.com> <20190310224742.GK26298@dastard> <01000169705aecf0-76f2b83d-ac18-4872-9421-b4b6efe19fc7-000000@email.amazonses.com> <20190312103932.GD1119@iweiny-DESK2.sc.intel.com> <20190312221113.GF23020@dastard> <20190313160319.GA15134@infradead.org> <010001697880bfdc-4503d0dd-03cd-4c91-84a0-c18af1eab145-000000@email.amazonses.com> <20190314090635.GC16658@quack2.suse.cz> From: John Hubbard X-Nvconfidentiality: public Message-ID: <445e6907-2fd7-1eeb-21f6-e7fa00d00346@nvidia.com> Date: Mon, 18 Mar 2019 13:12:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190314090635.GC16658@quack2.suse.cz> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL108.nvidia.com (172.18.146.13) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US-large Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1552939953; bh=iGAUPJJ+Q3A71Lvl21ZNq7fTQp4p5vmBmHlE40N1XP8=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=kdfzspIOMbdNIz/V4toshBZcPvyHARFKk/GxlRerAg4U8EZ/Ck8XeretMa1qlqxB0 9hZQUw49H3B9nr7wc2DTPBpQAUNUHqbohF9c+u2HwqGb03mHntxjVXlbGNMhfFCnRy DsYWC9Zdw6hEDsL2CE+KKjS/tRnEK5BHek4C5Fa4Jn+xCPuLMVITBYdYHrH8816lTu 0B7MjwmiMhbz55bziJkKiVlZv67ghCPmoRSPELgtuaTW7jB1u1gGqGlWrp1K1jcnuF VSsRGR/kES8782fEmJVBtPp3K8M134jW7KuT49l0PsUITEAJAFukDIHbL8Pm890V+K TRspMJldCevUg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/14/19 2:06 AM, Jan Kara wrote: > On Wed 13-03-19 19:21:37, Christopher Lameter wrote: >> On Wed, 13 Mar 2019, Christoph Hellwig wrote: >> >>> On Wed, Mar 13, 2019 at 09:11:13AM +1100, Dave Chinner wrote: >>>> On Tue, Mar 12, 2019 at 03:39:33AM -0700, Ira Weiny wrote: >>>>> IMHO I don't think that the copy_file_range() is going to carry us through the >>>>> next wave of user performance requirements. RDMA, while the first, is not the >>>>> only technology which is looking to have direct access to files. XDP is >>>>> another.[1] >>>> >>>> Sure, all I doing here was demonstrating that people have been >>>> trying to get local direct access to file mappings to DMA directly >>>> into them for a long time. Direct Io games like these are now >>>> largely unnecessary because we now have much better APIs to do >>>> zero-copy data transfer between files (which can do hardware offload >>>> if it is available!). >>> >>> And that is just the file to file case. There are tons of other >>> users of get_user_pages, including various drivers that do large >>> amounts of I/O like video capture. For them it makes tons of sense >>> to transfer directly to/from a mmap()ed file. >> >> That is very similar to the RDMA case and DAX etc. We need to have a way >> to tell a filesystem that this is going to happen and that things need to >> be setup for this to work properly. > > The way to tell filesystem what's happening is exactly what we are working > on with these patches... > >> But if that has not been done then I think its proper to fail a long term >> pin operation on page cache pages. Meaning the regular filesystems >> maintain control of whats happening with their pages. > > And as I mentioned in my other email, we cannot just fail the pin for > pagecache pages as that would regress existing applications. > > Honza > Christopher L, Are you OK with this approach now? If so, I'd like to collect any additional ACKs people are willing to provide, and ask Andrew to consider this first patch for 5.2, so we can get started. thanks, -- John Hubbard NVIDIA