Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3183288rwb; Mon, 5 Sep 2022 07:40:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR4yOP5zrHA1B3KL3RA/5n7yEmhxmsf9zMmBAflriPrKhgzf94gvCR5cvzt9veGbLCcBaB7a X-Received: by 2002:a17:907:72d5:b0:73d:d6ce:5d3a with SMTP id du21-20020a17090772d500b0073dd6ce5d3amr34813002ejc.489.1662388827421; Mon, 05 Sep 2022 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662388827; cv=none; d=google.com; s=arc-20160816; b=bWo/GrAPDHKIlXOG1QAZeJ992s6wUABwtZWso8UvFHy5ZljC70IrTNiMxQHqGYn1UG DJq2bgklh7QlRbmwLUBcATrpvHjjQJXNr+WXvgwUWSNQ5LndlRYEM01KRIclEtuQKRaL nuXwEULR0Ccj7miBfDcz6ovFspYPShgnsPFscEeah/RsMWsSvhmlOhuk9zkp1QjkX/K0 8Cw1X1rW3kvB4bHHEnl+kCroCWx/vESVDyBUBwAuCb8YkRj05+4hhhEx2/bRVxk34RB1 IuSDEBQk3HcRItq0IDwYAtAOG7RYUy+awgWZjGHLJdrx9al9USMFvGARv3OoZCo48wy8 Uzmg== 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=Y4/jKaf/eLcqZPk6lC+3R154Ru296Ee+lt5Q6AOm3dE=; b=vnKDX+vbiuzRFcgUgZv8YezK09UT+VTB1t/EMI1TXpN5UYFWhBgouv0jgMfSaF2T7S oT0aYT2xCa+aks8rtW0/ANXd+wyWtbZtXi7RyYfErj8is4eQI9qWdNb1OtxdJu59/L0A ynIvjeuw7pD+8EfAnuMLSGnkcYluCCFVff1HSzWS2ULUuskb+i8zfH7QgPLOGPk7zBqM VCr7h22im1hurQuNyNHcJTejEBaJB2qRMCvdQzl5BJDBZjshUG2y8w6nUy0KuW/itf/s EZ3sBO0ZxxuSlFPVJMdam4Bmis0jJdoV/nEPeS3+K3JjZjmbJDZGQD/COYyb2j1iwvsi cc3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a056402154d00b0044da16b4e30si4070611edx.306.2022.09.05.07.39.59; Mon, 05 Sep 2022 07:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238116AbiIEOd7 (ORCPT + 99 others); Mon, 5 Sep 2022 10:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbiIEOd5 (ORCPT ); Mon, 5 Sep 2022 10:33:57 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A29945A883; Mon, 5 Sep 2022 07:33:56 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 3D5E668AA6; Mon, 5 Sep 2022 16:33:51 +0200 (CEST) Date: Mon, 5 Sep 2022 16:33:51 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Greg Kroah-Hartman , Dan Williams , Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell , Stephen Bates Subject: Re: [PATCH v9 2/8] iov_iter: introduce iov_iter_get_pages_[alloc_]flags() Message-ID: <20220905143351.GA5813@lst.de> References: <20220825152425.6296-1-logang@deltatee.com> <20220825152425.6296-3-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825152425.6296-3-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 09:24:19AM -0600, Logan Gunthorpe wrote: > Add iov_iter_get_pages_flags() and iov_iter_get_pages_alloc_flags() > which take a flags argument that is passed to get_user_pages_fast(). > > This is so that FOLL_PCI_P2PDMA can be passed when appropriate. Any reason why iov_iter_get_pages2 doesn't call iov_iter_get_pages_flags and same for the __alloc version? Also with the "main" version now having the 2 postfix, we can just use the iov_iter_get_pages name for the flags version, and maybe eventually just convert all users over to it.