Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 063c54dc authored by Gui Hecheng's avatar Gui Hecheng Committed by Chris Mason
Browse files

btrfs: fix raid56 scrub failed in xfstests btrfs/072



The xfstests btrfs/072 reports uncorrectable read errors in dmesg,
because scrub forgets to use commit_root for parity scrub routine
and scrub attempts to scrub those extents items whose contents are
not fully on disk.

To fix it, we just add the @search_commit_root flag back.

Signed-off-by: default avatarGui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: default avatarQu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: default avatarMiao Xie <miaoxie@huawei.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent a53f4f8e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3065,6 +3065,8 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
	path->search_commit_root = 1;
	path->skip_locking = 1;

	ppath->search_commit_root = 1;
	ppath->skip_locking = 1;
	/*
	 * trigger the readahead for extent tree csum tree and wait for
	 * completion. During readahead, the scrub is officially paused