Re: [PATCH v3 2/5] btrfs: scrub: Fix RAID56 recovery race condition

2017-03-29 Thread Qu Wenruo
At 03/30/2017 08:51 AM, Liu Bo wrote: On Wed, Mar 29, 2017 at 09:33:19AM +0800, Qu Wenruo wrote: [...] Reported-by: Goffredo Baroncelli Signed-off-by: Qu Wenruo --- fs/btrfs/scrub.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c inde

Re: [PATCH v3 2/5] btrfs: scrub: Fix RAID56 recovery race condition

2017-03-29 Thread Liu Bo
On Wed, Mar 29, 2017 at 09:33:19AM +0800, Qu Wenruo wrote: [...] > > Reported-by: Goffredo Baroncelli > Signed-off-by: Qu Wenruo > --- > fs/btrfs/scrub.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c > index ab33b9a8aac2..f92d2512f

[PATCH v3 2/5] btrfs: scrub: Fix RAID56 recovery race condition

2017-03-28 Thread Qu Wenruo
When scrubbing a RAID5 which has recoverable data corruption (only one data stripe is corrupted), sometimes scrub will report more csum errors than expected. Sometimes even unrecoverable error will be reported. The problem can be easily reproduced by the following steps: 1) Create a btrfs with RAI