Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2111411imj; Fri, 8 Feb 2019 12:46:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IZy+EHcuwUSbgXyIPXOr5Ffb+bMXmZIAzczHuicFkeHaqbG7eKms4ozKUYrAAGmE9qnAxHu X-Received: by 2002:aa7:8812:: with SMTP id c18mr8745204pfo.36.1549658792403; Fri, 08 Feb 2019 12:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549658792; cv=none; d=google.com; s=arc-20160816; b=NKsyJ8Vn8eK5pXEUhJ5+Qt4F6iLJ+z1hiON1aKri4uxDxeGfq6/1B52CFqYftbTV8L Fn0z/Wu1YZHFR2MzsYpxv7CLix2pdG28rkenBCpqPNks6Sr0FiZcPh9Jb/9ot0ww6lpF Ug1jY56QzvYctA3bhRriFZ/cN6gWoq73LW0NvtECt2cnWeBV5uGdxeP0Tbopux7JuEuH fam5Lr27CylaLBfVbY9SE7UW92vby/1+iNrkOOOFM2YVYdNzs3o0csGau9I2YPb9/Fn5 u8xlBWfPOsZRWAbXXwHgotkYHOHh5DZTlwkk2v9VzW6TyUsJExQNh6aNPEDFMyBoE4nD s1Xw== 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=ogIholLrpKztcsDoAScWgBL1e5vfshGcZY+vwNC42rg=; b=RrFHD1Av9ji6yky58r/rcWCWYPefEIL3igi0ysApkMt2q0y2GsrLJ8xdzcuk7L++rg 0eGW0HKhic9syZLOQNL2TcO1poRXPvIH2RqmTVRBlnhvZAk39Ru5t4OY+97cpc2bR3MP PoNLk8k+3ldsI2km21V96L6AwCXIAPHEPVqgj8tjM5imiqt8udZeX3RRYVofXgskMR/r Q7UQSEWgL16tyBHDeaDJFqzPY7Mc8GSu3vEDLW5xVQPa6J99mrKQirf4XN36yjJfu+AQ JH3fJ7EFuJ/81+GceUk8nbwI2zY98UTz8E3UwFHTHatf5GzvV4bHzp9OYLeBMnJWnV4/ BNYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=sAWi2INA; 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 g22si2528537plo.130.2019.02.08.12.46.16; Fri, 08 Feb 2019 12:46:32 -0800 (PST) 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=sAWi2INA; 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 S1727090AbfBHUpA (ORCPT + 99 others); Fri, 8 Feb 2019 15:45:00 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:5355 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726755AbfBHUo7 (ORCPT ); Fri, 8 Feb 2019 15:44:59 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 08 Feb 2019 12:45:03 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Fri, 08 Feb 2019 12:44:59 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 08 Feb 2019 12:44:59 -0800 Received: from [10.2.164.159] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 8 Feb 2019 20:44:58 +0000 Subject: Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions To: Mike Rapoport , CC: Andrew Morton , , Al Viro , Christian Benvenuti , Christoph Hellwig , Christopher Lameter , Dan Williams , Dave Chinner , Dennis Dalessandro , Doug Ledford , Jan Kara , Jason Gunthorpe , Jerome Glisse , Matthew Wilcox , Michal Hocko , Mike Marciniszyn , Ralph Campbell , Tom Talpey , LKML , References: <20190208075649.3025-1-jhubbard@nvidia.com> <20190208075649.3025-2-jhubbard@nvidia.com> <20190208103211.GD11096@rapoport-lnx> X-Nvconfidentiality: public From: John Hubbard Message-ID: <9c1985cc-cd99-a950-5ea2-9df9f93eb98b@nvidia.com> Date: Fri, 8 Feb 2019 12:44:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190208103211.GD11096@rapoport-lnx> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1549658703; bh=ogIholLrpKztcsDoAScWgBL1e5vfshGcZY+vwNC42rg=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=sAWi2INAdMFVha1o+0PxFQFpRxw0XUDZH6EHdS0tXI6IMWQabh2rAzTr96FGKQxAK r0aikr3jTyoS3DxaYwrKX5T7q8ls1Aq584uHk8oBkugOH6hSCm3cDIQyxqepV0cPOn QuUVL0k04OQP5WPYD9lo2wvJbSKKRMl3l9Xoaqhcad5u/ej2y8PCq9Y/ViixMdQHKb kLoMbizF1iqWwlOGrhJoNu2oVKogaWbBomZlQxjQ6TdKT504r9P8hqkIi9AwKZnZB1 8OpYjxjN40TYgY15Ro/ABg0ylD2edugYItbNuT4lLwlr8I6X5zIoOE1csq+a+zruhC 5itwstqUV7DNw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/8/19 2:32 AM, Mike Rapoport wrote: > On Thu, Feb 07, 2019 at 11:56:48PM -0800, john.hubbard@gmail.com wrote: >> From: John Hubbard [...] >> +/** >> + * put_user_page() - release a gup-pinned page >> + * @page: pointer to page to be released >> + * >> + * Pages that were pinned via get_user_pages*() must be released via >> + * either put_user_page(), or one of the put_user_pages*() routines >> + * below. This is so that eventually, pages that are pinned via >> + * get_user_pages*() can be separately tracked and uniquely handled. In >> + * particular, interactions with RDMA and filesystems need special >> + * handling. >> + * >> + * put_user_page() and put_page() are not interchangeable, despite this early >> + * implementation that makes them look the same. put_user_page() calls must > > I just hope we'll remember to update when the real implementation will be > merged ;-) > > Other than that, feel free to add > > Reviewed-by: Mike Rapoport # docs > Thanks for the review! Yes, the follow-on patch that turns this into a real implementation is posted [1], and its documentation is updated accordingly. (I've already changed "@Returns" to "@Return" locally in that patch, btw.) [1] https://lore.kernel.org/r/20190204052135.25784-5-jhubbard@nvidia.com thanks, -- John Hubbard NVIDIA