Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1006839ybc; Tue, 12 Nov 2019 12:39:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzxDvWPaCOjBiYNjfSmb3EltB5Lk2uX9jTMmRtCSMfBg8N6tk6Ujb4P8CubGP80Zpk0fCwt X-Received: by 2002:a17:906:c789:: with SMTP id cw9mr30836224ejb.40.1573591194531; Tue, 12 Nov 2019 12:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573591194; cv=none; d=google.com; s=arc-20160816; b=u45DMqLP1Z8gp+8oxJ7M/mq0u0FykrmDX386vMkRV9l8oedRpnOidiCZmbTJBVyctM CzTyb9A2pKOnEnTvaL52cPILmIM+KTVTTDMFOqXRNxNQFx5S666+1/K7n8fJ0FH7bUG2 pykNC2KJ1ig4Eq3uvu9RdgK7HzSCQFBw0qVKKUZ+gGqmJmctm9+IEwUvk+ycMxMavxBI p6Axfq4b4iY7l2W92sEQii23dSO1C6qhocS2TCuXhWJ9wm8D/cbFWpIj0CM+plBRTk6i cDT15+lQc4Acnm7xrA0L+lzlgNKj51wk9Ljpu0zoEc/YVF+Rq+F3g83I1eYXiD5kAX0Q rlkw== 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=GMi4xT2UOd2CFR3VJjVGTgOG1WxBYR/HDNQyyBU/zGM=; b=CGq3HSzrnZp9wHJ1UWEsg+gh4XPNxIoVAJjlX4XynqRw1kbGygIgekza1alhV2nUtH sAjI9jvgY6YjmywFVNtwn0GScnHpXyeYfrtkX2t8Gwf/vtgEweFN8gVZ5hODi0YxWf4d wbe+cpMsoELF4wspigRulkDc6I/80d1/m4z6EFfRVS68kr35Q9/iq1jqCf3Q8qXIiFiN gawNjT4Qjp51D/Dci+VnWv9CEPK40utdzCnumsi27QRqTem498d2EVyxO1reSM8dimQT BBGpvEISX+kbCvv/pqZML7XtPPm8Lrwr6NTQovo4gWa1o1yBDb8OS8KiQ3k+Q1O80bUs qJOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=j3NNIjPO; 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 ly15si344032ejb.343.2019.11.12.12.39.29; Tue, 12 Nov 2019 12:39:54 -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=@ziepe.ca header.s=google header.b=j3NNIjPO; 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 S1726973AbfKLUiE (ORCPT + 99 others); Tue, 12 Nov 2019 15:38:04 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45193 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfKLUiE (ORCPT ); Tue, 12 Nov 2019 15:38:04 -0500 Received: by mail-qk1-f194.google.com with SMTP id q70so15707587qke.12 for ; Tue, 12 Nov 2019 12:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GMi4xT2UOd2CFR3VJjVGTgOG1WxBYR/HDNQyyBU/zGM=; b=j3NNIjPO3cADqvZd/hJQbIxM+DDhVRAEGcC+3T6+Q3fhxmcfREpCirlLaEIJBZkEdd e3aBqytbSt/O1y6azCg5mzciQb9aXN7nl404GgQzXcRXFb+31Gp+DUUM20vq+CBmnlhO OI6Itn853T6kP0jxgCe/92EYcvYqEI5wpO6FG/uJe2R9DweqI3FnTjwOvYkLmRQ3s4Xc zG96fPghzfwVyKWk9G5BMiBAMZoSIJhIZiNOrjmRw2PjfIwZlx+LuvDRDWa51OzyNGdk 7PnZkzKlvewWQFyt2QF7slB5Swx6CEiwuOCbZxYFCsytkVXhCWtpdK2fshpP/jsmV8fx ZjTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GMi4xT2UOd2CFR3VJjVGTgOG1WxBYR/HDNQyyBU/zGM=; b=X/CnMEAnGQIJQ8WlzoFVc2cHLvYaFDNwHMBxJ6YNNqT7WX2qttNZcfcp8nXPWWwNA2 0CQpOnfurOVOmc0XRCxE0CWutobjc2SJxqVEwyNjIccYj6TSYgqvbEN9HyC7LE2UIBJq AdpEXATwisjpVqZh59z78iY9inGMQGl1csoVi5deEDCvhpkgDebCvdi8ogEHWdsaLtmS sXQJu4PW7FMsUlSB3EAZHNw6hV+QOvqTXC0OaMFRXFjgmYSqouL4CwhYzYm+L1Kx2fIn zxYUYsGUGCg2t9geQ/CtrBozMkNOGvZ88AfYAtP0jzpuS9qHPhAoYKXyWy/mknf/diT9 7u1w== X-Gm-Message-State: APjAAAUWPk63rY3vxt7I5kPKMvLJGcae286j5zLDTjCnRWxgeApLS/RK CgPLZj49QU0w6M9IOQ+YpqsdbQ== X-Received: by 2002:a37:dc44:: with SMTP id v65mr7289252qki.72.1573591083419; Tue, 12 Nov 2019 12:38:03 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-180.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.180]) by smtp.gmail.com with ESMTPSA id k40sm11983680qta.76.2019.11.12.12.38.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2019 12:38:02 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1iUcvK-00043t-G4; Tue, 12 Nov 2019 16:38:02 -0400 Date: Tue, 12 Nov 2019 16:38:02 -0400 From: Jason Gunthorpe To: John Hubbard Cc: Andrew Morton , Al Viro , Alex Williamson , Benjamin Herrenschmidt , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Christoph Hellwig , Dan Williams , Daniel Vetter , Dave Chinner , David Airlie , "David S . Miller" , Ira Weiny , Jan Kara , Jens Axboe , Jonathan Corbet , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Magnus Karlsson , Mauro Carvalho Chehab , Michael Ellerman , Michal Hocko , Mike Kravetz , Paul Mackerras , Shuah Khan , Vlastimil Babka , bpf@vger.kernel.org, dri-devel@lists.freedesktop.org, kvm@vger.kernel.org, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, linux-rdma@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org, linux-mm@kvack.org, LKML Subject: Re: [PATCH v3 00/23] mm/gup: track dma-pinned pages: FOLL_PIN, FOLL_LONGTERM Message-ID: <20191112203802.GD5584@ziepe.ca> References: <20191112000700.3455038-1-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191112000700.3455038-1-jhubbard@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 04:06:37PM -0800, John Hubbard wrote: > Hi, > > The cover letter is long, so the more important stuff is first: > > * Jason, if you or someone could look at the the VFIO cleanup (patch 8) > and conversion to FOLL_PIN (patch 18), to make sure it's use of > remote and longterm gup matches what we discussed during the review > of v2, I'd appreciate it. > > * Also for Jason and IB: as noted below, in patch 11, I am (too?) boldly > converting from put_user_pages() to release_pages(). Why are we doing this? I think things got confused here someplace, as the comment still says: /** * 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. I feel like if put_user_pages() is not the correct way to undo get_user_pages() then it needs to be deleted. Jason