Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1280865pxb; Fri, 21 Jan 2022 14:14:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJSZLED7YuRLa5yvb+aIdB3b6qiq6eCDktCvs4lX0UVztiYiVhV5tbaAiA72eJglCaZI/g X-Received: by 2002:a17:902:7786:b0:14a:e8f4:a9d4 with SMTP id o6-20020a170902778600b0014ae8f4a9d4mr5507915pll.86.1642803245636; Fri, 21 Jan 2022 14:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803245; cv=none; d=google.com; s=arc-20160816; b=T4qEcWtQ/fVZeU7YyodwUSjIFXBLiJ+jI+DUQl5eLRFtQQlPusZhkcCDjRyYKkxJqW 1YBOjcpkDiLy7u+LXDSPNraj+0hNt9amUtXkZvKb9MboUnBkHuWKQtjaUb1AQTFjwLbe fqcuJys3lOcnOeLoH1ykQdwjnRwGPlH8BFf3Mpi2kcYIuDRKHA2fvW93AqS3TUghevwy Y1APpOAli1XtAumYHywVZmIL2RsfAZW3IT1ZcPgZ0hv2WlmizuEGpD2G3HCok6Z6se/A XUdFsk5ohtXXmly0xEqyfHjbcMRDLacGWpyF0NRrhKbeyUQkAhxRiKAtF910y0GBDpA2 tbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Igm6gf2lSeHRD3cMsFTSU5gDVSwTdvgltWpkS9T9ifM=; b=Cwh9AWv6XhIsQDTM+MDNh21Ma/Tmwq/EOP1wfD1/V/RUqwIrh42ScFbf3TSvK1KKhI /7UihYaz8IULLeQvwRIUT8NWlT0xNIJaqbFCgBuKpxGS38KhWzrehg/nd9wWIkgyDKu/ Yk1P04HKck5y0HTw/OjRMmq2kSGjsbnmQj9LdHdLsU3iLRmwBUf/Gbqn2WguAI8LR9aA 6efZi85MaF14HvsSSteRDD7lFrt7VxvqbemB6L03w5/ptgu9Q53TtvR8zfaUBt1vnIMm MUtbQN1oINaFusF07ZAmiJAfHU28+SaNdV+gXV5Crl72vC3TtqZ/oLInGzVP/OV7pndv RGRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si5557287pgu.89.2022.01.21.14.13.53; Fri, 21 Jan 2022 14:14:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345322AbiATOM1 (ORCPT + 99 others); Thu, 20 Jan 2022 09:12:27 -0500 Received: from verein.lst.de ([213.95.11.211]:44803 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345116AbiATOM0 (ORCPT ); Thu, 20 Jan 2022 09:12:26 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id B904E68C4E; Thu, 20 Jan 2022 15:12:20 +0100 (CET) Date: Thu, 20 Jan 2022 15:12:19 +0100 From: Christoph Hellwig To: John Hubbard Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, Christoph Hellwig , Jason Gunthorpe , Joao Martins , Logan Gunthorpe , Ming Lei , linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org, nvdimm@lists.linux.dev Subject: Re: Phyr Starter Message-ID: <20220120141219.GB11707@lst.de> References: <82989486-3780-f0aa-c13d-994e97d4ac89@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82989486-3780-f0aa-c13d-994e97d4ac89@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 11, 2022 at 12:17:18AM -0800, John Hubbard wrote: > Zooming in on the pinning aspect for a moment: last time I attempted to > convert O_DIRECT callers from gup to pup, I recall wanting very much to > record, in each bio_vec, whether these pages were acquired via FOLL_PIN, > or some non-FOLL_PIN method. Because at the end of the IO, it is not > easy to disentangle which pages require put_page() and which require > unpin_user_page*(). I don't think that is a problem. Pinning only need to happen for ITER_IOVEC, and the only non-user pages there is the ZERO_PAGE added for padding that can be special cased.