Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4075449rwb; Sat, 21 Jan 2023 05:31:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXvm3tHCYT3Au/DmZCDdo3XAYrfgUSYAG4EpBots3CYB3rh9WE2etdzI3E093OLyWAnx458O X-Received: by 2002:a17:906:4694:b0:86d:c1b2:257b with SMTP id a20-20020a170906469400b0086dc1b2257bmr29458431ejr.19.1674307893472; Sat, 21 Jan 2023 05:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674307893; cv=none; d=google.com; s=arc-20160816; b=pCF/vMFTj1qUaikScQneSYVE4RbPdbPPahHGYQdJHX3/YGaKlkEF3dIGnZQoofFQB1 h/BiHu/nJiOVXCE3HBoag+d12MhRJkIDevfmbbbfZ8MH/t0R+h2qlZkuQ90JXl3Jw0Pz rqHnj1PhGgmGjtOGSYifIle4E5U48HwS7xUL/cQh7E3Z13Wkh+Qajtz14dXSifVLM4n3 Z9Wh7zPMOTSCAjyqZTcxfeXO41ae8rKThGK3RhkUOq9ojqdDvS6YHSpcG0WaTNx7izqz CqFLZYLYDYFWpJ2ho+LpwOWQTsXegsknT6YdjGNwqPQrnnd8+uwc6d9uuMAXSAjEYdwT s/sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CQ0i0Hj7VlUtQ3sjNUJquE59U2rg0tg3CNt0ZjaPcD4=; b=a8XAWJ7dcZfZkvTmO9GHPvgxootKJdrFiGZnzkqx3seXHwzp96aYv9iD6lF4m2Rmzj iYChye4RQvTkwcKeDYlxN//122jRFm7JNbIVwB7NU34/kSOV6CYxZJxi9vMpXg0lTV6X ubtmt4hf2V4bLdNINacHHvU/ygXcTvCtBdzKX+z2J79YrUFBqLtMM7DAXAyBuRn+AaCo h9PVmyJ3TVNTFMxyRXQ+16DEFr8jv5RKDy4FtA9rLdJqO0EDTDnz+00bsQz5F6UBU/BZ XWLUeGHsi07DQtzCOKCOW61g/oAFWQn2QHMPKdAv9FLpDsBLhxFA4FY4LQpbJ8EXHO8v Q8Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=P0JjBL0i; 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 hb43-20020a170907162b00b0087052df6f02si24835520ejc.901.2023.01.21.05.31.20; Sat, 21 Jan 2023 05:31:33 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=P0JjBL0i; 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 S229880AbjAUNK0 (ORCPT + 52 others); Sat, 21 Jan 2023 08:10:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjAUNKZ (ORCPT ); Sat, 21 Jan 2023 08:10:25 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B9CC469F; Sat, 21 Jan 2023 05:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=CQ0i0Hj7VlUtQ3sjNUJquE59U2rg0tg3CNt0ZjaPcD4=; b=P0JjBL0iZFTpwc0lBr7jn3wb3+ 5lh/0DnDG1ZKQ1DsosYVnoOpeU4PMfmTtof4vkRWUNuwWa5ifL1glK5L8aQ1sIn0T5pwEdx9UzBtG ErR8OAso3Kw/8/IXPAASlhwl/CqSmupX0cM2zoe2apGQmlGZeUKr70/qLLLeQFCa1vb38+A1fqkWO 1wJA3/cxglSExyRNAVf7+CKW+oeFDqb0C3UV2BJ6kMOyjnNOOvNmFpqsOOuBsUskWP7anZLVSlCG/ oPjd2aGkuk1rRvQsgMja+hIn00fDLM6+quLVxzhZNQwBSP1S8hNo+TFXhJvQ3AwmUKYYpMGiHWmdz XLzsIjwA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJDdS-00Dt8I-ED; Sat, 21 Jan 2023 13:10:18 +0000 Date: Sat, 21 Jan 2023 05:10:18 -0800 From: Christoph Hellwig To: David Howells Cc: Al Viro , Christoph Hellwig , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , John Hubbard , linux-mm@kvack.org Subject: Re: [PATCH v7 2/8] iov_iter: Add a function to extract a page list from an iterator Message-ID: References: <20230120175556.3556978-1-dhowells@redhat.com> <20230120175556.3556978-3-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120175556.3556978-3-dhowells@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 Fri, Jan 20, 2023 at 05:55:50PM +0000, David Howells wrote: > (3) Any other sort of iterator. > > No refs or pins are obtained on the page, the assumption is made that > the caller will manage page retention. ITER_ALLOW_P2PDMA is not > permitted. The ITER_ALLOW_P2PDMA check here is fundamentally wrong and will break things like io_uring to fixed buffers on NVMe. ITER_ALLOW_P2PDMA should strictly increase the group of acceptable iters, it does must not restrict anything.