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 476CFC6FA8E for ; Thu, 2 Mar 2023 13:59:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjCBN7t (ORCPT ); Thu, 2 Mar 2023 08:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjCBN7s (ORCPT ); Thu, 2 Mar 2023 08:59:48 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C164B1E5FA for ; Thu, 2 Mar 2023 05:59:44 -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=G8TYaQH0P1DvGgdmrGJ4RrBSHE1pALhnmNnKS2Bp9/w=; b=D+RreTsDM3UnjqDIlBwTgB5Dpx FdgmFcDRSduiV5nv6nvRftV6z8ttgZvSpEOW2SuBXRkcjHQwjYuOUGF1WJ/CfEHPglSMUv26t5UyV PWodT1u6cEbqVjwjCxdAsYLcPp3cprEo8NhObVrTyzj0hcGe2c5iSbD5NQfJD3mGAyOw9HLdLm/sN KMquhKDHWWrclFVFj7t1z7jaAwPkBy1RyFwo4V/4nO4MgguuenJSfQo8rZgAACdEBjMdNMXRWiW8l zhNaXWQqTlmW+qBwUBhqLZUgurYe1DRbjaD3GF0eomXf1qQZtIn+0j+/U3d01Mt6LahrH2LmpnIbf f3nOYrYg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pXjTB-002OmV-CV; Thu, 02 Mar 2023 13:59:41 +0000 Date: Thu, 2 Mar 2023 05:59:41 -0800 From: Christoph Hellwig To: Johannes Thumshirn Cc: Qu Wenruo , David Sterba , "linux-btrfs@vger.kernel.org" , Josef Bacik , Christoph Hellwig Subject: Re: [PATCH v7 04/13] btrfs: add support for inserting raid stripe extents Message-ID: References: <94293952cdc120b46edf82672af874b0877e1e83.1677750131.git.johannes.thumshirn@wdc.com> <3e2d5ede-fb00-3aa8-e55e-d088b8df9e60@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-btrfs@vger.kernel.org On Thu, Mar 02, 2023 at 11:25:22AM +0000, Johannes Thumshirn wrote: > > The main concern may be the bioc <-> ordered extent mapping, but IIRC > > for zoned mode one bioc is one ordered extent, thus this shouldn't be a > > super big deal? > > Yep, but I want to be able to use RST for non-zoned devices as well > to attack the RAID56 problems and add erasure coding RAID. I have a series in my queue the limits every btrfs_bio (and thus bioc) to a single ordered_extent. The bio spanning ordered_extents is a very strange corner case that rarely happens but causes a lot of problems. With that series we'll also gain a pointer to the ordered_extent from the btrfs_bio, which will remove all the ordered_extent lookups from the fast path. So I think you can rework your series to also limit the bio to a single ordered extent, and if needed split the ordered extent for anything that uses the raid stripe tree and we'll nicely converge there.