All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Cc: David Sterba <dsterba@suse.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
	Filipe Manana <fdmanana@suse.com>,
	Naohiro Aota <Naohiro.Aota@wdc.com>
Subject: Re: [PATCH] btrfs: zoned: exclude relocation and page writeback
Date: Wed, 18 Aug 2021 11:36:48 +0200	[thread overview]
Message-ID: <20210818093648.GP5047@suse.cz> (raw)
In-Reply-To: <PH0PR04MB741690FBBB6A43279E9F1ED89BFE9@PH0PR04MB7416.namprd04.prod.outlook.com>

On Tue, Aug 17, 2021 at 02:21:51PM +0000, Johannes Thumshirn wrote:
> On 12/08/2021 16:53, David Sterba wrote:
> > On Thu, Aug 12, 2021 at 02:40:59PM +0000, Johannes Thumshirn wrote:
> >> On 12/08/2021 16:28, David Sterba wrote:

> I did some testing with the inode lock and it looks good but does not 
> necessarily fix all possible problems, i.e. if a ordered extent is being
> split due to whatever device limits (zone append, max sector size, etc),
> the assumptions we have in relocation code aren't met again.
> 
> So the heavy lifting solution with having a dedicated temporary relocation
> block group (like the treelog block group we already have for zoned) and using
> regular writes looks like the only solution taking care of all of these problems.

So that means that the minimum number of zones increases again, right.
If the separate relocation zone fixes this and possibly other problems
then fine, but as you said this is heavy weight solution.

We will need a mechanims with a spare block group/zone for emergency
cases where we're running out of usable metadata space and need to
relocate so this could be building on the same framework. But for first
implementation reserving another block group sounds easier.

  reply	other threads:[~2021-08-18  9:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 13:53 [PATCH] btrfs: zoned: exclude relocation and page writeback Johannes Thumshirn
2021-08-12 14:25 ` David Sterba
2021-08-12 14:40   ` Johannes Thumshirn
2021-08-12 14:50     ` David Sterba
2021-08-17 14:21       ` Johannes Thumshirn
2021-08-18  9:36         ` David Sterba [this message]
2021-08-18  9:55           ` Johannes Thumshirn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210818093648.GP5047@suse.cz \
    --to=dsterba@suse.cz \
    --cc=Johannes.Thumshirn@wdc.com \
    --cc=Naohiro.Aota@wdc.com \
    --cc=dsterba@suse.com \
    --cc=fdmanana@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.