linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072
@ 2015-01-09  1:39 Gui Hecheng
  2015-01-09  5:31 ` Miao Xie
  2015-01-16 11:00 ` David Sterba
  0 siblings, 2 replies; 4+ messages in thread
From: Gui Hecheng @ 2015-01-09  1:39 UTC (permalink / raw)
  To: linux-btrfs; +Cc: miaoxie, Gui Hecheng, Qu Wenruo

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: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
 fs/btrfs/scrub.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index f2bb13a..aa8ff75 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -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
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072
  2015-01-09  1:39 [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072 Gui Hecheng
@ 2015-01-09  5:31 ` Miao Xie
  2015-01-16 11:00 ` David Sterba
  1 sibling, 0 replies; 4+ messages in thread
From: Miao Xie @ 2015-01-09  5:31 UTC (permalink / raw)
  To: Gui Hecheng, linux-btrfs; +Cc: Qu Wenruo

On Fri, 09 Jan 2015 09:39:40 +0800, Gui Hecheng wrote:
> 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.

Reviewed-by: Miao Xie <miaoxie@huawei.com>

> 
> Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
> ---
>  fs/btrfs/scrub.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
> index f2bb13a..aa8ff75 100644
> --- a/fs/btrfs/scrub.c
> +++ b/fs/btrfs/scrub.c
> @@ -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
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072
  2015-01-09  1:39 [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072 Gui Hecheng
  2015-01-09  5:31 ` Miao Xie
@ 2015-01-16 11:00 ` David Sterba
  2015-01-23  1:56   ` Qu Wenruo
  1 sibling, 1 reply; 4+ messages in thread
From: David Sterba @ 2015-01-16 11:00 UTC (permalink / raw)
  To: clm; +Cc: Gui Hecheng, linux-btrfs, miaoxie, Qu Wenruo

On Fri, Jan 09, 2015 at 09:39:40AM +0800, Gui Hecheng wrote:
> 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: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>

Chris, please add this patch to 3.19-rc queue, followup to the new
raid56 scrub code.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072
  2015-01-16 11:00 ` David Sterba
@ 2015-01-23  1:56   ` Qu Wenruo
  0 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2015-01-23  1:56 UTC (permalink / raw)
  To: dsterba, clm, Gui Hecheng, linux-btrfs, miaoxie


-------- Original Message --------
Subject: Re: [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072
From: David Sterba <dsterba@suse.cz>
To: <clm@fb.com>
Date: 2015年01月16日 19:00
> On Fri, Jan 09, 2015 at 09:39:40AM +0800, Gui Hecheng wrote:
>> 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: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
>> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
> Chris, please add this patch to 3.19-rc queue, followup to the new
> raid56 scrub code.
Hi Chris,

This patch doesn't seems to be included in 3.19-rc5, would you please 
add it to next rc?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-23  1:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09  1:39 [PATCH] btrfs: fix raid56 scrub failed in xfstests btrfs/072 Gui Hecheng
2015-01-09  5:31 ` Miao Xie
2015-01-16 11:00 ` David Sterba
2015-01-23  1:56   ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).