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 E1E9FC54EE9 for ; Wed, 7 Sep 2022 11:36:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbiIGLgq (ORCPT ); Wed, 7 Sep 2022 07:36:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbiIGLgb (ORCPT ); Wed, 7 Sep 2022 07:36:31 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1F46B9419 for ; Wed, 7 Sep 2022 04:35:20 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4B2E667373; Wed, 7 Sep 2022 13:35:17 +0200 (CEST) Date: Wed, 7 Sep 2022 13:35:17 +0200 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Chris Mason , Josef Bacik , David Sterba , Naohiro Aota , Johannes Thumshirn , Qu Wenruo , linux-btrfs@vger.kernel.org Subject: Re: code placement for bio / storage layer code Message-ID: <20220907113517.GA9643@lst.de> References: <20220901074216.1849941-1-hch@lst.de> <20220907091056.GA32007@lst.de> <382f747b-7ea3-f1a9-805f-0550ae90963e@gmx.com> <20220907111009.GA8131@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 Wed, Sep 07, 2022 at 07:27:48PM +0800, Qu Wenruo wrote: >> - btrfs_submit_bio >> - btrfs_submit_mirrored_bio >> - btrfs_submit_dev_bio >> - btrfs_clone_write_end_io >> - btrfs_orig_write_end_io >> - btrfs_raid56_end_io > > This is scrub only usage, I guess we may find a better way to determine > if it should go there. Nothing of this is scrub only. All the above are called by btrfs_submit_bio, or set up as end_io handlers by them.