Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp38748pxk; Sat, 29 Aug 2020 15:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgxq8aXmp5qReCNUF107aMpPQy8lVZuj4J+++BfYhVhCLOPwZbwa09rECjSn+QVPnrzj0T X-Received: by 2002:aa7:df14:: with SMTP id c20mr5141773edy.334.1598738982288; Sat, 29 Aug 2020 15:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598738982; cv=none; d=google.com; s=arc-20160816; b=PaTSv5D6pVP62lhvkXNo8a4F/Aej5NK45jriYdQdFp4FBH1xzs5Lzpj2Bn0QgunLE6 slogsGlKHSlS/6I7ae3Bko1Q/WWZ7k7DpTocc46poOiZ1wKVkmDs0VRY9AOpk/QLDldN t/TcY7yTNfa8CcApyHnWhvo+usUevZKLJk7/NEhSNTBfNo4l6JJlVbrKRbwt0mrDnk0U C4bvByXg+6/HkuaLbNqEZAcTjacR1nYzDHtRxq4/srM/76CIlES8V5sdJD+03J5kC/Ve KHRS7r1nRhhDPjanS3HWCFu7lCr085bb/TUTdk9Zae3I50AmHDih2hTnZ5MXhinetiWe BxXA== 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=prw38Q2A3ZZ+rOHUhaGtFVP9FzXw/WOtwBNM0K0dXqc=; b=vk4f36TzfjT7nT9M+vgehZYZKK3/WEAvSGTP9DprGuFnQuf2bXSvtV2uLX04Bk4wA4 CCJYMb3pgZVnb57gfz1le/zml4Ee/U8ekoXzG2M2gjcR6ExxzfiUR3OFVEVgGeA9QOTS 1tMDMg4K8B9/2dSJqQpPnFEcnymw7fs9thj5IyC2PoF5V6gXIaDzWZpYFaQVnm6sxgIe AzLeCRbOJeUg1NRI564P3eb8acaj1vOhrX9+2ze4S5q8LvHvJriHXNJL1CmijKFpTA+8 2EO58t7J6Ohpuxv2zQJfkh99XzSRy0sEVN7MsnOg4ZPOJWBjSsHbq9ZoGtZveA/sIOH+ ufwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="cmCW/N36"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di2si2337237edb.556.2020.08.29.15.09.17; Sat, 29 Aug 2020 15:09:42 -0700 (PDT) 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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="cmCW/N36"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbgH2WIa (ORCPT + 99 others); Sat, 29 Aug 2020 18:08:30 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:7220 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgH2WIa (ORCPT ); Sat, 29 Aug 2020 18:08:30 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sat, 29 Aug 2020 15:06:25 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sat, 29 Aug 2020 15:08:29 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sat, 29 Aug 2020 15:08:29 -0700 Received: from [10.2.61.161] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 29 Aug 2020 22:08:28 +0000 Subject: Re: [PATCH v2 3/3] bio: convert get_user_pages_fast() --> pin_user_pages_fast() To: Christoph Hellwig CC: Andrew Morton , Alexander Viro , Ilya Dryomov , Jens Axboe , , , , , LKML References: <20200829080853.20337-1-jhubbard@nvidia.com> <20200829080853.20337-4-jhubbard@nvidia.com> <20200829150223.GC12470@infradead.org> From: John Hubbard Message-ID: <95880e98-f4d6-add1-db96-ae349064d3c6@nvidia.com> Date: Sat, 29 Aug 2020 15:08:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200829150223.GC12470@infradead.org> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) 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=1598738785; bh=prw38Q2A3ZZ+rOHUhaGtFVP9FzXw/WOtwBNM0K0dXqc=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=cmCW/N36vGdG5BvU4mtxJvp2EBjq5feBrcE15+24CUg8gsHL7R9Ml6tvtSvVZDC3V C5cWuWNj9/fFSaSox6IK8bcBxmU6Ji72Nj1th3n+XsSgv6bPBsG7wPFosqgf7Mi636 ULH/I8q6JRheOie5rqqyXQ8jzKdVvVkRKnIo1uOz50Ckb670Dq4FoVvxSYuJOu0e3X kRa9THr9jTPRON+e5X+v5Vbc8a9J9ISJbhLWH3MIKsI3hgIS9qYQbef8M11D7QkU2j KVZe2lHZrN42XOSVVGaXHO+rDdktsBOq5ORqg8QjDME0O60/AJvX9UG+fF8s6S6vKK 0IO4i2sVBJlnA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/29/20 8:02 AM, Christoph Hellwig wrote: >> - size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); >> + size = iov_iter_pin_user_pages(iter, pages, LONG_MAX, nr_pages, &offset); > > This is really a comment to the previous patch, but I only spotted it > here: I think the right name is iov_iter_pin_pages, as bvec, kvec and > pipe aren't usually user pages. Same as iov_iter_get_pages vs > get_user_pages. Same for the _alloc variant. > Yes, it is clearly misnamed now! Will fix. >> + * here on. It will run one unpin_user_page() against each page >> + * and will run one bio_put() against the BIO. > > Nit: the ant and the will still fit on the previous line. > Sorry about that, *usually* my text editor does the Right Thing for those, I must have interfered with the natural flow of things. :) thanks, -- John Hubbard NVIDIA