Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3915922rwd; Mon, 22 May 2023 23:49:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DAVU0JyO2Iq6sKc86FDUjxSsRrCpML2LYj/i0Z12ZYKdsPErSljqngLFA7AjOMhyCFvCt X-Received: by 2002:a17:902:e74f:b0:1af:d1a4:25d with SMTP id p15-20020a170902e74f00b001afd1a4025dmr656334plf.42.1684824547363; Mon, 22 May 2023 23:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684824547; cv=none; d=google.com; s=arc-20160816; b=UP5QUDTC7nbh8Y9Xk4kf3an66hTFb8Nof4nlHIPq2UuPCZbGG/3Ia6trHx5lI076Or 087ElYvKfO2g6/dN+HXoYjPOIy4f0HjuUelOJe7whxk9E8mmgJcCfBKxMqaQpVhSQFH2 rwY7votKIx7REPOfkz9rzMZabSPNw3HJfIMHTow/i0/WXlKVyS/1ZieG1ee+x5PLP06r HAx1FSRW6NUtMnkvGvxkutqoabNAkEzyjNWPSWo3VoNRhb0BGzWUIzgqjJC/oyDsXQ0C 3X9vj0Rp0AfNA/kqiYHroOtELx+B/XPFXA/dkfh1jaZS4J6Vi/ZE3/LCpJFRLjrYbSBs FfJQ== 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=Mhb2D8wxaUdoso9990IdDeANdXYgpQ6YKPHN0xOlZJI=; b=b5vGBte551pYOlzqTb9pI8D+WCvV349fmv2XT3PHpYIpFD1+lMYRPWa7Salak7hC3D /Ikcq4EWDPQsI5ptMTaX6U3x9LllwSEI/4wCZ7l7/S2Yp6+krvbwRha4EW41gGFe3xyk rEM6rtjydiRhC46Ot5nq0XEBFIffEHtb4C0TwqsU2RBz3AOg7r+Kfu5rgP1Dl8QCNSk0 KIRNb55enB2WwDEB06cslrXrpK9dr2mc2uDSaeZvcfLfzxj3agekB5Us3ds7ktjTg8HU tMDjjqLbjWH5XUv0T8xwq8jhcAXxY/jMKMpcMvtvoEBjKJx+ri6ENmyxeEaoh81wgdOl uynw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VajJCGfS; 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 q6-20020a17090311c600b001a99b9d767csi6038275plh.166.2023.05.22.23.48.52; Mon, 22 May 2023 23:49:07 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VajJCGfS; 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 S235070AbjEWGkB (ORCPT + 99 others); Tue, 23 May 2023 02:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjEWGkA (ORCPT ); Tue, 23 May 2023 02:40:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B30EC119; Mon, 22 May 2023 23:39:56 -0700 (PDT) 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=Mhb2D8wxaUdoso9990IdDeANdXYgpQ6YKPHN0xOlZJI=; b=VajJCGfSR+AMMCU+kW3mWkdTex PDTINv6I14VakgdsK3oi8rd8/pOgiQyDnEKAdnmFM+rJfuD7iPd1MV5kBsEZFb89GTYSk/YBr8NwP 2sHVcrDi3gvQlOJU2b6PZ3pFE+ZUDnblCuhSvIN+P/vJcE0x/D3XUzYvAdw0xT8IY5B/gs9ILXKyM e4lmExxZOQXK2uHpddjK8X0F0W+LYs6KCveZ8cnkiTgoIkHBOl/B8XoN+u5KD7777UVAuVnvLtjGk DUseUSJC9jwdHO+SlOiMmPmFbRKnaLphaekqtwqKm3QXPfdYoLXgsj+NS69JNua4FhardcqypLLlI pZB31X3A==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1LgK-0096BI-31; Tue, 23 May 2023 06:39:40 +0000 Date: Mon, 22 May 2023 23:39:40 -0700 From: Christoph Hellwig To: David Howells Cc: Jens Axboe , Al Viro , Christoph Hellwig , Matthew Wilcox , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v21 0/6] block: Use page pinning Message-ID: References: <20230522205744.2825689-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522205744.2825689-1-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,T_SCC_BODY_TEXT_LINE,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 Mon, May 22, 2023 at 09:57:38PM +0100, David Howells wrote: > Hi Jens, Al, Christoph, > > This patchset rolls page-pinning out to the bio struct and the block layer, > using iov_iter_extract_pages() to get pages and noting with BIO_PAGE_PINNED > if the data pages attached to a bio are pinned. If the data pages come > from a non-user-backed iterator, then the pages are left unpinned and > unref'd, relying on whoever set up the I/O to do the retaining. I think I already review the patches, so nothing new here. But can you please also take care of the legacy direct I/O code? I'd really hate to leave yet another unfinished transition around.