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 960B3C61D97 for ; Wed, 25 Jan 2023 06:30:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234585AbjAYGaU (ORCPT ); Wed, 25 Jan 2023 01:30:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbjAYGaS (ORCPT ); Wed, 25 Jan 2023 01:30:18 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8BB32FCEF; Tue, 24 Jan 2023 22:30:17 -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=1mLNmezIgSTpYg5+zojMIZAmFtYPS82rFw2cxZKdKLg=; b=S2jOPmP5zmWE26Hv43S8OlSgUc EcJc//M02IXqz5WNTml1JCcdZHtX9L8f3xv/NVyStFmkMKS04rrVXEZgtWbvEXE7X4r8EpdODMXa8 m+efRkX/miTMf7BJcvJEGc6EjuDuw9vz9jdSYCMTJdgbBaFc8cDoKQjhBje2EBYCUhR1SzLtTaaON uO+C6U/GqPAmboBOLZe3iNeIemXy5QUWPwW6VsRZ0szTpzw+80HpfTINEfKWxpfBEVYrm3U8TFnLR WgusGjSGd+m4dDSIokx0JxIv65aJq9kiM9JFvskV4x6a7a9tM9W5vxVidZi86ButZZ2Hw9D40oG9z nvBeg3sg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKZIP-0067rs-3U; Wed, 25 Jan 2023 06:30:09 +0000 Date: Tue, 24 Jan 2023 22:30:09 -0800 From: Christoph Hellwig To: David Howells Cc: John Hubbard , Christoph Hellwig , Al Viro , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v9 5/8] block: Replace BIO_NO_PAGE_REF with BIO_PAGE_REFFED with inverted logic Message-ID: References: <20230124170108.1070389-1-dhowells@redhat.com> <20230124170108.1070389-6-dhowells@redhat.com> <1353771.1674595077@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1353771.1674595077@warthog.procyon.org.uk> 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-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 09:17:57PM +0000, David Howells wrote: > John Hubbard wrote: > > > > + /* for now require references for all pages */ > > > > Maybe just delete this comment? > > Christoph added that. Presumably because this really should move to pinning > or be replaced with iomap, but it's not straightforward either way. Christoph? Mostly because it adds the flag when allocating the bio, and not where doing the gup. If John thinks it adds more confusion than it helps, we can drop the comment. That being said you had a conversion in an earlier version of the series, and once the current batch of patches is in we should resurrected it ASAP as that will allow us to kill BIO_FLAG_REFFED.