Re: [PATCH v2] btrfs: zoned: fix unpaired block group unfreeze during device replace

2021-04-20 Thread David Sterba
On Wed, Apr 14, 2021 at 02:05:26PM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > When doing a device replace on a zoned filesystem, if we find a block > group with ->to_copy == 0, we jump to the label 'done', which will result > in later calling btrfs_unfreeze_block_group(), even th

[PATCH v2] btrfs: zoned: fix unpaired block group unfreeze during device replace

2021-04-14 Thread fdmanana
From: Filipe Manana When doing a device replace on a zoned filesystem, if we find a block group with ->to_copy == 0, we jump to the label 'done', which will result in later calling btrfs_unfreeze_block_group(), even though at this point we never called btrfs_freeze_block_group(). Since at this p