Re: [PATCH] btrfs: fix re-dirty process of tree-log nodes
From: Naohiro Aota <Naohiro.Aota@wdc.com>
Date: 2021-11-30 01:52:00
From: Naohiro Aota <Naohiro.Aota@wdc.com>
Date: 2021-11-30 01:52:00
On Mon, Nov 29, 2021 at 01:19:39PM +0100, David Sterba wrote:
On Mon, Nov 29, 2021 at 11:49:30AM +0900, Naohiro Aota wrote:quoted
For zoned btrfs, we re-dirty a freeing tree node to ensure btrfs write the region and not to leave a write hole on a zoned device. Current code failed to re-dirty a node when the tree-log tree's depth >= 2. This leads to a transaction abort with -EAGAIN. Fix the issue by properly re-dirty a node on walking up the tree. Link: https://github.com/kdave/btrfs-progs/issues/415Can you please add more information from the issue that's relevant to the problem? Eg. the stacktraces, reproducer etc.
Sure. I'll revise the patch with the fixes tags. Thanks,