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 28CEAC7EE23 for ; Thu, 1 Jun 2023 05:34:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjFAFed (ORCPT ); Thu, 1 Jun 2023 01:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjFAFec (ORCPT ); Thu, 1 Jun 2023 01:34:32 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D2DD129 for ; Wed, 31 May 2023 22:34:31 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 45BAE67373; Thu, 1 Jun 2023 07:34:28 +0200 (CEST) Date: Thu, 1 Jun 2023 07:34:28 +0200 From: Christoph Hellwig To: Naohiro Aota Cc: Qu Wenruo , Christoph Hellwig , Johannes Thumshirn , "linux-btrfs@vger.kernel.org" Subject: Re: new scrub code vs zoned file systems Message-ID: <20230601053428.GA23274@lst.de> References: <20230531132032.GA30016@lst.de> <821003e3-b457-90ba-e733-8c2fdd0c3b3c@wdc.com> <20230531133038.GA30855@lst.de> <20230531141739.GA2160@lst.de> <134e56ed-1139-a71c-54d7-b4cbc27834a9@gmx.com> <20230601044034.GA21827@lst.de> <20230601052223.GA23080@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601052223.GA23080@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Jun 01, 2023 at 07:22:23AM +0200, Christoph Hellwig wrote: > ch@brick:~/work/linux$ git-grep -C1 btrfs_record_physical_zoned fs/btrfs/bio.c > fs/btrfs/bio.c- if (bio_op(bio) == REQ_OP_ZONE_APPEND && !bio->bi_status) > fs/btrfs/bio.c: btrfs_record_physical_zoned(bbio); > fs/btrfs/bio.c- > > nope. We are doing a zone append write here. > > That being said in latest misc-next btrfs_record_physical_zoned stops > lookin at bbio->inode, so the crash part is gone. Although btrfs/167 then crashes a little later in btrfs_record_physical_zoned. From what I can tell because we get a bio without the ->sums array.