Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3238287imc; Wed, 13 Mar 2019 12:24:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9iEsBQxoWGm2ZuQL9toTXa8EkIWyMnmDbEUp3PntJ77cFH5crxkSep4e+tmZRp1TqD6Bd X-Received: by 2002:a63:6949:: with SMTP id e70mr41142754pgc.89.1552505043907; Wed, 13 Mar 2019 12:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552505043; cv=none; d=google.com; s=arc-20160816; b=a+0BiwFLwTBp9IlJyxREdJ9HkIq1IKH9vXfFIZGiQbuhCvyKDglvuoFWudueLLYzr5 z9YAmylS+BpMOsTvTRiC/0rPuVvTy9/1dGc+i/1FN8szq+JJEy5yPPpNyhMTRfcPWqi/ zXsUf5k7VZlzRBsVbq4Bbur3wZJ/p2PcCxNGi6X637VoNZfyvywgDZGGRwSYTBoMyIPD Je7XDP8jMo7enr6BFYv4pFOT60Qryl7DRs0y9hr0fE5wDHKtvgnWwW1rgtWS5LKvZYBB eMGucjB8zbmRGmyyReASQAo+0c+ffd1YXL3AdF+l4JNCJ7EcbVAgfsa3AG4DvCQSX2yk kY5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=+/NfNXWl+B8nDZmsoLsXblISt5zHA91zPSRD2oVDv74=; b=jAL2J4iM/qgFc6TkI6fbGLPgiT/v4LQ5C6Pj6br5cokM+r6NaKSbB/6Mqa8nLe86+b 4yFjX9FOpZrmUqHFVSks8/QC9Ajg3j4qEsPX3sURj/1BtTqrkm7kEx8EWaPohmQMNQ0d OB4W/bbjMAnhngtOowFu7BQBm9SaWWYMURidoSSrey1/6RhOwkncU3r4AMPs5yFAkChq DVy0s9QebcHIk0Xs+J5VmS+g1nhuPILd8dfB36uAa9a/zx7Nj3V1JLlzHi3XpiTIxrZ7 R+77o68wwEdHY4U+tFuyLsgM2q2ayxMRskbKqeDXIrWfbxj5dc8JudEWxynAc/Gsn799 fz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=aVKPXXb2; 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 u9si10330215pgr.551.2019.03.13.12.23.47; Wed, 13 Mar 2019 12:24:03 -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=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=aVKPXXb2; 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 S1729124AbfCMTVk (ORCPT + 99 others); Wed, 13 Mar 2019 15:21:40 -0400 Received: from a9-114.smtp-out.amazonses.com ([54.240.9.114]:60654 "EHLO a9-114.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbfCMTVi (ORCPT ); Wed, 13 Mar 2019 15:21:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1552504897; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=SfWdjvUkwZe+2Dd4vugu5sfhOkXcR0c1mSWLWevFMhQ=; b=aVKPXXb2dmDsuNCuoE242Hhb6DL9Dz/3VVvfCRCmcoewVXQ6E4W2y6kaNFzmhegf 51+NZvO/T47ln0z/M/zfOaOCUdoOyyj+3J/3laE7SgaayKBr3K6nkMnGUYrJyPUO6C/ SnwSnQZll03tXHxBP9oj1tuhomYOFHWeP3Zt4SD8= Date: Wed, 13 Mar 2019 19:21:37 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Christoph Hellwig cc: Dave Chinner , Ira Weiny , john.hubbard@gmail.com, Andrew Morton , linux-mm@kvack.org, Al Viro , Christian Benvenuti , 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 In-Reply-To: <20190313160319.GA15134@infradead.org> Message-ID: <010001697880bfdc-4503d0dd-03cd-4c91-84a0-c18af1eab145-000000@email.amazonses.com> 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> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.03.13-54.240.9.114 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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.