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 CD643C433F5 for ; Wed, 23 Mar 2022 06:11:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241560AbiCWGN0 (ORCPT ); Wed, 23 Mar 2022 02:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbiCWGNZ (ORCPT ); Wed, 23 Mar 2022 02:13:25 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA1C7006C; Tue, 22 Mar 2022 23:11:57 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id BDD7968AFE; Wed, 23 Mar 2022 07:11:54 +0100 (CET) Date: Wed, 23 Mar 2022 07:11:54 +0100 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Josef Bacik , David Sterba , Qu Wenruo , Naohiro Aota , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 24/40] btrfs: remove btrfs_end_io_wq Message-ID: <20220323061154.GH24302@lst.de> References: <20220322155606.1267165-1-hch@lst.de> <20220322155606.1267165-25-hch@lst.de> <1c79e3ba-b9eb-d0df-748a-438abe705384@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1c79e3ba-b9eb-d0df-748a-438abe705384@gmx.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Mar 23, 2022 at 08:57:03AM +0800, Qu Wenruo wrote: > > > On 2022/3/22 23:55, Christoph Hellwig wrote: >> Avoid the extra allocation for all read bios by embedding a btrfs_work >> and I/O end type into the btrfs_bio structure. >> >> Signed-off-by: Christoph Hellwig > > Do we really need to bump the size of btrfs_bio furthermore? > > Especially btrfs_bio is allocated for each 64K stripe... One of the async submission or completion contexts is allocated for almost every btrfs_bio. So overall this reduceѕ the memory usage (at least together with the rest of the series).