Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3110444imc; Wed, 13 Mar 2019 09:04:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy20FKd9XK+7SOouOvd3b97eELTWmVDGohA0iafH4AB1MsXHqfuazXoWRBdMiPyPxJ2Lbh5 X-Received: by 2002:a17:902:3124:: with SMTP id w33mr33013207plb.43.1552493085805; Wed, 13 Mar 2019 09:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552493085; cv=none; d=google.com; s=arc-20160816; b=Y3rHpHXCduNOda9YCvaMaoYwN/b2c9KnmgtcGNxxT99Z1+LY4efmcuAIzKwh2XLgTQ zsRL2An7Prj/wj7kW9UhI3DgkMUgCmBlRnTillInPRIAyHAHpB0dVhRPSiprRnvRn+6e Oa1/hu65ouoRbG61H7ZI/MBYfzb2CSGW+aVfPCi0p4uSJDVVukIRK1KtkMWzkzLGgyee GMvs2Mgb50Hg03VGdv3Ke85+fRHbxgr5hRW1MQlpURXgc9Xg/LJB4g7h2vG2rMnro6zR 3kQxdeqFVuFay3t563VBbe7m6f7z2eJq9TetIrL6C7Qo37kglCp5IsNHpZglcQAIVCdn VGLw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uNI5X/3NiZwWGw9ll+SGYgUYDbq0/M8f6aJJzFdlRg8=; b=FvL0y8NtbtdD+zOHnxMqtv+TQdHfmV/Spoh3gbuVVh1imUoFbvQTvEG/mYB0DRRY1t JvhFtlllrI7T4oHg+7IwnATTGvP/60DJGBG2JvhPsDusp17i+gFyOSFKe6tPf34fhiI+ cvjXvC6+5/tAw/ic5/VdGMzqt9eP7fu0S2cmSSNy7/xwOdjPiNAxrdh+Wh9JVbbvI4zl QE7XAX0Skgct8k2wmh9PqeXeAEdrnVXsG3G4nsfdm7WNs6kTXi1RNUVYKAAGvVsoh+kZ 0zTw+HXKoeq9KXJ8Mn2uJZx30WMBtjrQ8z3G1oEdfjbekmZOqdHaUSdgPUwGKrQ3dVRh Qq3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HAIUAFIb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s198si9749905pgs.582.2019.03.13.09.04.29; Wed, 13 Mar 2019 09:04:45 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HAIUAFIb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbfCMQDg (ORCPT + 99 others); Wed, 13 Mar 2019 12:03:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54592 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfCMQDg (ORCPT ); Wed, 13 Mar 2019 12:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uNI5X/3NiZwWGw9ll+SGYgUYDbq0/M8f6aJJzFdlRg8=; b=HAIUAFIbqsW3BMxa/FP5NX1sG yw88chlyXN2ibo/Qu5d+gI4KxTZuL7AbNlHF0jJlGUzB21qP16G260680a2VUZLeipWU05Mn99LAu PpqWc6IqgqhyIMLkJEcfN72nGVnUjHbzkIcfuVkd6VEn+tXvqAXZavNAS5s0lksDJ73gRqY7kPQ1l JBqGDM9SN+rIsNP5uhBsIKXyqajBBvmyhH7qgWPZReT9+cYuPLpQDXyYo0hYgy6iZxpT1IxQlRJiI 3WWBkZ6SbAAmf4MBUw1zyzXRfAEkSmW5eamvKicLBu/pT0jDDL1fpCBp+a72ig51Y279e15azLyL7 29XFmWulA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h46Lf-0004Jg-Kg; Wed, 13 Mar 2019 16:03:19 +0000 Date: Wed, 13 Mar 2019 09:03:19 -0700 From: Christoph Hellwig To: Dave Chinner Cc: Ira Weiny , Christopher Lameter , john.hubbard@gmail.com, Andrew Morton , linux-mm@kvack.org, Al Viro , Christian Benvenuti , Christoph Hellwig , Dan Williams , Dennis Dalessandro , Doug Ledford , Jan Kara , Jason Gunthorpe , Jerome Glisse , Matthew Wilcox , Michal Hocko , Mike Rapoport , Mike Marciniszyn , Ralph Campbell , Tom Talpey , LKML , linux-fsdevel@vger.kernel.org, John Hubbard Subject: Re: [PATCH v3 0/1] mm: introduce put_user_page*(), placeholder versions Message-ID: <20190313160319.GA15134@infradead.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190312221113.GF23020@dastard> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.