Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1927593pxa; Sat, 29 Aug 2020 08:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc2U+wbItddQzFCrhp6ma4NaTIfs5DFNd6TXf4/awyew8eSbKZu7Avv9wOiqS7UtOB5bD2 X-Received: by 2002:a17:906:82c9:: with SMTP id a9mr3733853ejy.161.1598713402599; Sat, 29 Aug 2020 08:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598713402; cv=none; d=google.com; s=arc-20160816; b=jInCQBhChDBj27CZDeReaX1DWxz2tZ5/rqX7CZ2nwBkx17b9rq0c4FvGfJWQ6tuyPy 3apd6VLRSEXH543qmTI/UjsK2RQqGny/f/zWiR5y0AnySbB19iFUSdWiEPmdVDNe4niO OBpFazbvVAJgxaVKBMuyHrKlS77aysexe6TXJAozHkpxIs8UmLKKj6Ua5YW6dirtdjXP ZmI4kTfIhLHPcQtZompJxACrG3ZBJss1CwPcsjjKzFIBwjqYe/sVsFYxoONHo7bcIWlF zcbd/WnKpXIbYfU+9cpY997wdwuDlYkq+4DuFznObS/uoRUJZz1ndXpZc4ciw72O6srB bQEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=d39SAF7s8f7x8GH2CWPNw/ILaZKmyMdbqFWhwl2+LCs=; b=lyurcwxWat+FAL9lTXqTHsxKgWX2ZHBSu038Xne8iBu57xNeoGQ3loe9aWD1ZPjAS1 rUcgSSGw3jd4yuB0uAy8TnKHlUkNaFt82Nz2lkpFPZHvc1R/u54/xJ1C/Gsbb9/ILIbL hfQ40mkOkE/J0ZhqSVHEpEfjt/pzTUFzfYSPXQHxOTadHM2Lddrva43wMbsv8u0tW3UC Vn0EvKSjVoIctJYN3I+TaUvGmfNgM5QluTNMskGoRJW1tlL+a5BSc3UEJjMaVkwYWgVx 66eaSVo+4b7Ij8pNd11RN2LCePGq6jJ76npq8U9XeBaFF7To1w0SS5WiII08XSxUQrag RRbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ZH44e5BY; 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 j20si1865399eja.95.2020.08.29.08.02.59; Sat, 29 Aug 2020 08:03:22 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=ZH44e5BY; 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 S1728249AbgH2PCa (ORCPT + 99 others); Sat, 29 Aug 2020 11:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbgH2PC3 (ORCPT ); Sat, 29 Aug 2020 11:02:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D74C061236; Sat, 29 Aug 2020 08:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=d39SAF7s8f7x8GH2CWPNw/ILaZKmyMdbqFWhwl2+LCs=; b=ZH44e5BY2MtmgIjPdcAcIdaIuG zfEVVciaLe1Qx7dnPvqoozMtOR/geSvdpKnVHGxSw4OCNeRl1NH+lPPokB2G9dL/lyTQYaBVP+90G 0jncSypl+gJsj5cr41TTGUIAcBefNavmzH5n3pDoDKhjMhW8o5/e2xeqPYKlFTjO8UdytOVdo7o9Q UkFxf8ApBwKT/ssP+9OxuNkpEUixe5d0bw4EMDY/5R8CATcX+6bCz17YHze82TQOuvRKh2S+0DjYD PDm2GlmECVBHFEsbXDv+Adm9Yu2bZLll73UdTrLi9JMkDKgRjJPCuwrPZsnGk7ukdi3fykniJlVJE rNMf17Sw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kC2N6-0003rR-1V; Sat, 29 Aug 2020 15:02:24 +0000 Date: Sat, 29 Aug 2020 16:02:23 +0100 From: Christoph Hellwig To: John Hubbard Cc: Andrew Morton , Alexander Viro , Christoph Hellwig , Ilya Dryomov , Jens Axboe , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, LKML Subject: Re: [PATCH v2 3/3] bio: convert get_user_pages_fast() --> pin_user_pages_fast() Message-ID: <20200829150223.GC12470@infradead.org> References: <20200829080853.20337-1-jhubbard@nvidia.com> <20200829080853.20337-4-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200829080853.20337-4-jhubbard@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.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 > - 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. > + * 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.