From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F319C004D4 for ; Sat, 21 Jan 2023 13:10:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbjAUNK0 (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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.