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 C2E07C6FD18 for ; Wed, 29 Mar 2023 23:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbjC2Xd2 (ORCPT ); Wed, 29 Mar 2023 19:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbjC2XdZ (ORCPT ); Wed, 29 Mar 2023 19:33:25 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7C15FFB for ; Wed, 29 Mar 2023 16:33:17 -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=h8vrIX07Nxyh5sihB/byOpKAC7dPJg8B5qTKtk36rL0=; b=1ZekmuRheMuZO709FNR35pq3lT T2l1N5Yfs/DDYB2RMKVcmF47Ym9pHaP3QUuL66ccwM3DdZL1xE1NJHgJfq2kmQWf1KUh+CoKgo95Z 2hLadeS25yIwnwnmj9Q2bTiRhUoe5jZb0GaRLsbyDlkfznA4lP5TGRieLU6H++2xDLjxbbUXPaHY3 jmKEyZ5vjd6CzBE8g3bGYWVF+OWLXn9OxF/VqnKMSwJE34IFVkSBN8wV2fpZNYsrvuEyj4VCdGS4d uAf5e/Cike23UuVSmSen7wlPAh9fb+ikX7KLq1XUb7rTj3DcpZWVtwFBTohMFJfBkdmZl3LgWn2OP wVmfxyYA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1phfI5-0024KT-1t; Wed, 29 Mar 2023 23:33:17 +0000 Date: Wed, 29 Mar 2023 16:33:17 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: linux-btrfs@vger.kernel.org, David Sterba Subject: Re: [PATCH v7 03/13] btrfs: introduce a new helper to submit read bio for scrub Message-ID: References: <79a6604bc9ccb2a6e1355f9d897b45943c6bcca9.1680047473.git.wqu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79a6604bc9ccb2a6e1355f9d897b45943c6bcca9.1680047473.git.wqu@suse.com> 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 Wed, Mar 29, 2023 at 07:56:10AM +0800, Qu Wenruo wrote: > The new helper, btrfs_submit_scrub_read(), would be mostly a subset of > btrfs_submit_bio(), with the following limitations: > > - Only supports read > - @mirror_num must be > 0 > - No read-time repair nor checksum verification > - The @bbio must not cross stripe boundary > > This would provide the basis for unified read repair for scrub, as we no > longer needs to handle RAID56 recovery all by scrub, and RAID56 data > stripes scrub can share the same code of read and repair. > > The repair part would be the same as non-RAID56, as we only need to try > the next mirror. Didn't we just agree that we do not need another magic helper?