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 C9F89C64EC4 for ; Thu, 9 Mar 2023 15:20:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjCIPUh (ORCPT ); Thu, 9 Mar 2023 10:20:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbjCIPU3 (ORCPT ); Thu, 9 Mar 2023 10:20:29 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189878481F for ; Thu, 9 Mar 2023 07:20:23 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 8704668AA6; Thu, 9 Mar 2023 16:20:19 +0100 (CET) Date: Thu, 9 Mar 2023 16:20:19 +0100 From: Christoph Hellwig To: Johannes Thumshirn Cc: Christoph Hellwig , "hch@infradead.org" , Qu Wenruo , David Sterba , "linux-btrfs@vger.kernel.org" , Josef Bacik Subject: Re: [PATCH v7 04/13] btrfs: add support for inserting raid stripe extents Message-ID: <20230309152019.GB17952@lst.de> References: <6eabe69c-3abe-255b-797f-7917cd6a33cd@gmx.com> <7bd4ce91-58e6-f68b-6d69-3f9deff39ff5@wdc.com> <48acd511-7f69-4c42-44ea-a39973d57c98@gmx.com> <20230308143330.GB14929@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Mar 09, 2023 at 10:53:08AM +0000, Johannes Thumshirn wrote: > I wanted to avoid memory allocations in the end_io handler though. > If all is offloaded to a common workqueue, like with your proposal, > that'll be ok for me, but atomic allocations don't look right for > this for me. Indeed.