]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: clear data relocation bg on zone finish
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 2 Dec 2021 08:47:14 +0000 (00:47 -0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Dec 2021 14:42:32 +0000 (15:42 +0100)
commit532faa9a192ad915f8a79751047701c317b8818f
tree947429bb6bd5a71485eb144e3f2d6f501f97058a
parent2d2d4e42310a2cf520b7c47ee1abf35c0f14b72a
btrfs: zoned: clear data relocation bg on zone finish

When finishing a zone that is used by a dedicated data relocation
block group, also remove its reference from fs_info, so we're not trying
to use a full block group for allocations during data relocation, which
will always fail.

The result is we're not making any forward progress and end up in a
deadlock situation.

Fixes: baba414833e7 ("btrfs: zoned: add a dedicated data relocation block group")
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c