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 12593C433EF for ; Tue, 22 Mar 2022 15:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234425AbiCVPqQ (ORCPT ); Tue, 22 Mar 2022 11:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232819AbiCVPqQ (ORCPT ); Tue, 22 Mar 2022 11:46:16 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370DEE76 for ; Tue, 22 Mar 2022 08:44:48 -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=LfnJPJXX6Hj7YyNbB0EikDREhdLcxrOoIy4HE+L22lY=; b=j9lrKd7O5mjuN9NoiPMmt+lEtg EGm9LkGz3J/aHereyCTUt6eX/AB2OsbSa930d5AqVMPLWcy33hYiXo6Gcq7fKg5ZezdnDMKSfQiIJ OZeJcqjh9aYghUqkxaqDkf2jdcmaMxcSaa3jTEYdl29ehrVCDKEm3DDa6XzAyUM/HQIgdLLByrwIU NN1o4M/f+oNhMcOqGyXrD1PqM7bp2VmG9HEkI6c5dpndqp6iD0P9TFBS8G0CQkr6qc4qp0LiadrMU ehMzS/3GXDT9h2WNdFoxYQKTKhuk0RKROmbJFlk/Y4i3qwLj+0ajxmzaGmZQK22YFpMRCIzSkJDZ7 H064UfJA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWggh-00BZGA-Jv; Tue, 22 Mar 2022 15:44:47 +0000 Date: Tue, 22 Mar 2022 08:44:47 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH v3 00/18] btrfs: split bio at btrfs_map_bio() time Message-ID: References: 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 I spent some time looking over this series and I think while it has some nice cleanups, it also goes fundamentally in the wrong direction. The way bios are used is that the file systems always builds bios to it's own limits like extents, lower drivers split them up if needed. By building the bigger bios in btrfs a lot of the completion handling gets much more complicated. I had actually started a series a bit ago to clean up the btrfs bio usage bottom up, taking advantage of the newer bios interfaces. I've spent some of my vacation time last week to finish this off and also add a few iomap improvements so that btrfs doesn't need to clone the iomap dio bios above btrfs_map_bio either. I'll send it out in a bit.