Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3067332ybi; Mon, 17 Jun 2019 15:53:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzokzgr20Hp++qZ7t+bDSNTBV3SeaYFPwstr6ouahyU77dUz6X9AT0Sf/4Whtj2OuO9AzcO X-Received: by 2002:a17:90a:480a:: with SMTP id a10mr1597925pjh.57.1560812023906; Mon, 17 Jun 2019 15:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560812023; cv=none; d=google.com; s=arc-20160816; b=wGus/OMf9yGzPldTJH+YueacsDiNlHiCyxaOblCl4x6qVvSnbbZM7i8NCHENixQvQU vnOUNbRaos7jWTaSN53poVcY2zDtYKgwersnXP4mh1+qStMcgJxErj4WPdqEaKnESZ+y 3g3pPElMv2QltDEBcAAKFpKnuWqbS3Ebu1nM3/6qdJaXVvJyXrV65bqngBD1gsz/UhZW gtTaUnaH01VkbLTtOdyj4d0MM37UfZvbDiZy0wA3glkmMXVyrwDrczbPht66LbO+F5hJ PzXQXTxelLmFX5hESo28x3HCMpgtrSQIgeW77CsMiFvGTHvXpFCxYSw2Pu6P9nY+LwcY YZOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=YJvIqmjdqOUbHMXCVOmzXU/ze5nF5buFPJQ1Zj60P64=; b=wFSEMKrJFLp+4GPlGJdQ6qG1Cg1Tp3xqMVCPo0lIa0CgyBb55765rB/dohWDbYqkHH pVrTAfCxzzIrtu/jfHJ9t2nKMPYAUC5Say57buhWbNCqxZYlT1l9HYcmEIWV/3svdEXN pyr1pmlf0txRLG1vG7oXWGgTmiFOiD0wRD0ztOJ0AAfh03b4iBQgPzIBXSMcCUUdoHt5 6ANkSyRO6y3ySGeHr5B2FNvLGuqUdXjHTmIjIS4hmBzgXLge+3G3r0SXDHw8c/b/vu2M s6hD80/F4B7OHPh5absHlZZK6zmdpf+q+w08sLSLbEXxZfphEjD3BZ6PNkvSqSbESpZ8 KqIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f92si12535325plb.330.2019.06.17.15.53.28; Mon, 17 Jun 2019 15:53:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728283AbfFQWxK (ORCPT + 99 others); Mon, 17 Jun 2019 18:53:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:41158 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726095AbfFQWxK (ORCPT ); Mon, 17 Jun 2019 18:53:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 32419ADD9; Mon, 17 Jun 2019 22:53:09 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 4B72FDA832; Tue, 18 Jun 2019 00:53:57 +0200 (CEST) Date: Tue, 18 Jun 2019 00:53:57 +0200 From: David Sterba To: Naohiro Aota Cc: linux-btrfs@vger.kernel.org, David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , linux-kernel@vger.kernel.org, Hannes Reinecke , linux-fsdevel@vger.kernel.org, Damien Le Moal , Matias =?iso-8859-1?Q?Bj=F8rling?= , Johannes Thumshirn , Bart Van Assche Subject: Re: [PATCH 09/19] btrfs: limit super block locations in HMZONED mode Message-ID: <20190617225356.GJ19057@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Naohiro Aota , linux-btrfs@vger.kernel.org, David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , linux-kernel@vger.kernel.org, Hannes Reinecke , linux-fsdevel@vger.kernel.org, Damien Le Moal , Matias =?iso-8859-1?Q?Bj=F8rling?= , Johannes Thumshirn , Bart Van Assche References: <20190607131025.31996-1-naohiro.aota@wdc.com> <20190607131025.31996-10-naohiro.aota@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607131025.31996-10-naohiro.aota@wdc.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 10:10:15PM +0900, Naohiro Aota wrote: > When in HMZONED mode, make sure that device super blocks are located in > randomly writable zones of zoned block devices. That is, do not write super > blocks in sequential write required zones of host-managed zoned block > devices as update would not be possible. This could be explained in more detail. My understanding is that the 1st and 2nd copy superblocks is skipped at write time but the zone containing the superblocks is not excluded from allocations. Ie. regular data can appear in place where the superblocks would exist on non-hmzoned filesystem. Is that correct? The other option is to completely exclude the zone that contains the superblock copies. primary sb 64K 1st copy 64M 2nd copy 256G Depends on the drives, but I think the size of the random write zone will very often cover primary and 1st copy. So there's at least some backup copy. The 2nd copy will be in the sequential-only zone, so the whole zone needs to be excluded in exclude_super_stripes. But it's not, so this means data can go there. I think the zone should be left empty.