Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2617589ybi; Sun, 26 May 2019 04:38:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqybd1xDTgLPT8ZB4aIaWSbpJwQVzxAaSf+1PAD7nlqNH3VR0seh09EwKYxwZ0A6zTBal3vK X-Received: by 2002:a62:2706:: with SMTP id n6mr48340951pfn.150.1558870696988; Sun, 26 May 2019 04:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558870696; cv=none; d=google.com; s=arc-20160816; b=B/6oi5dpximiDpaDZS10MqU4hJik2GwFFgxuvrqTgYoEjf06vn5XIBHAnh8ej8y5Fy VkHi/K6/3IBryCLu++Pv8X2xiu1zGVirrYiTpXJW2Gc2O7mm9HlQOrpNZDF93ZzXS4+8 X7M/Li9Jy9N1K0oetmP1nsk8449dBeoyAv9sJysJ8CjcuARbvC0aZ2xAjErwc0j4fWQt 6modnXbGOu4xLRFW06vaGenHPPo9DgPvU9o3IsJ2q2rDNVJRC7uqgpH7TVOzQjcqHOHB 7AHn+rBzTJ/dpjxaLgD3V9IZLKleqrMGFfE/5d1145Ra7tJKS1VTI+J58F5pBxjOY3F4 g5uw== 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=Jw4RVjb44Rl/ijGMDvXlIocM4n+wpJ+gzkrVGf7lYHI=; b=GHHm5Ei/Xz5HuRecc9QR0bmb5ylFl7HDRDr/90kC8A+wQS2NwEPdeJuhtd1MQHMBgF fFu6k1D2sPJsoHnX0cp73lZSS9ObH59rzVRCHTCzLwMSdE62fS6XaYb5+f/Q5ITuM7aw 4wKjSLXqWgE2sSnBrb8yNG/rujjdjClx7WsW2aazOvdp2z8iqvlU7mrT3JR4bbQPPgVQ RKtD4S/YKMxxHIAsm+YUtgMQJcnw3yMMuc39CFhjbQ3BKSbQztXPvvH7diekZfut6NBM 7Yo5EGbviMBnWYozQREBTgOnqhu7UYrSkE3EzeffQDj+EByFtczJLDLeiT18NL4RC4mJ nuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=B9RbYvX+; 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 cg6si2170229plb.350.2019.05.26.04.37.36; Sun, 26 May 2019 04:38:16 -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=B9RbYvX+; 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 S1727734AbfEZLar (ORCPT + 99 others); Sun, 26 May 2019 07:30:47 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49650 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727621AbfEZLaq (ORCPT ); Sun, 26 May 2019 07:30:46 -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=Jw4RVjb44Rl/ijGMDvXlIocM4n+wpJ+gzkrVGf7lYHI=; b=B9RbYvX+BRYnxapubpxxADejO x66DQneKUCIAI1k9L+lDLC9ViSYCqJ/BatwnGD7a0pu9TzLVeiEfNw3idbXlvzBswV7SqthuEEAIx Gug0nME/T60pDeZvnIb91NaU4p+NdlQz/hKNrAbTYbomQJcntR3p8L4MN4ayKwjOUxNQaxF7BFlQ9 3yFDRJB6uQ3Ezu7wghWk0H5Wy2JN8Bzl5/fQ0ht//A36yqfOwh+QxVBk3RI4xvRrwI1GRFmHg6Wb+ Fpau3zojmKqj2m8LJPCcW77VqLs0A6eS3vSfp/oSN0Zs/asSp3mvW7Su4ojTsUCIYBh10TTMv8Ych fp2CzUbbw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hUrMR-0002Dx-L2; Sun, 26 May 2019 11:30:43 +0000 Date: Sun, 26 May 2019 04:30:43 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: john.hubbard@gmail.com, Andrew Morton , linux-mm@kvack.org, Jason Gunthorpe , LKML , linux-rdma@vger.kernel.org, linux-fsdevel@vger.kernel.org, John Hubbard , Doug Ledford , Mike Marciniszyn , Dennis Dalessandro , Christian Benvenuti , Jan Kara , Ira Weiny , =?iso-8859-1?B?Suly9G1l?= Glisse , Jason Gunthorpe , Christoph Hellwig Subject: Re: [PATCH v2] infiniband/mm: convert put_page() to put_user_page*() Message-ID: <20190526113043.GA3518@infradead.org> References: <20190525014522.8042-1-jhubbard@nvidia.com> <20190525014522.8042-2-jhubbard@nvidia.com> <20190526110631.GD1075@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190526110631.GD1075@bombadil.infradead.org> 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 Sun, May 26, 2019 at 04:06:31AM -0700, Matthew Wilcox wrote: > I thought we agreed at LSFMM that the future is a new get_user_bvec() > / put_user_bvec(). This is largely going to touch the same places as > step 2 in your list above. Is it worth doing step 2? > > One of the advantages of put_user_bvec() is that it would be quite easy > to miss a conversion from put_page() to put_user_page(), but it'll be > a type error to miss a conversion from put_page() to put_user_bvec(). FYI, I've got a prototype for get_user_pages_bvec. I'll post a RFC series in a few days.