linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems running Balance and checking integrity concurrently.
@ 2014-10-10 13:35 Wang Shilong
  2014-10-16 15:48 ` Stefan Behrens
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Shilong @ 2014-10-10 13:35 UTC (permalink / raw)
  To: sbehrens; +Cc: Josef Bacik, clm, linux-btrfs

Hello,

I have reproduced a problem with Btrfs integrity and balance using latest
btrfs kernel,it is very easy to reproduce:

With mount option “check_int”, and run xfstests/btrfs/ tests, below test could definitely
reproduce problem:

./check tests/btrfs/014

5.122248] Written block @25800343552 (sdc/1210187776/0) found in hash table, M, bytenr mismatch (!= stored 20968505344).
[  455.122283] Written block @25800359936 (sdc/1210204160/1) found in hash table, M, bytenr mismatch (!= stored 20968521728).
[  455.122301] Written block @25800376320 (sdc/1210220544/1) found in hash table, M, bytenr mismatch (!= stored 20968538112).
[  455.122347] Referenced block @25800343552 (sdc/1344405504/2) found in hash table, M, bytenr mismatch (!= stored 20968505344).
[  455.122427] Referenced block @25800359936 (sdc/1344421888/2) found in hash table, M, bytenr mismatch (!= stored 20968521728).
[  455.122853] Written block @25800376320 (sdc/1344438272/0) found in hash table, M, bytenr mismatch (!= stored 20968538112).
[  455.126275] BTRFS critical (device sdc): unable to find logical 3452043264 len 4096
[  455.126491] btrfsic: btrfsic_map_block(root @3452043264) failed!
[  455.126496] BTRFS critical (device sdc): unable to find logical 3452059648 len 4096
[  455.126769] btrfsic: btrfsic_map_block(root @3452059648) failed!
[  455.126773] BTRFS critical (device sdc): unable to find logical 3452076032 len 4096
[  455.127007] btrfsic: btrfsic_map_block(root @3452076032) failed!
[  455.127011] BTRFS critical (device sdc): unable to find logical 3452092416 len 4096
<snip>
[  455.129864] btrfsic: btrfsic_map_block(root @3452272640) failed!
[  455.129869] BTRFS critical (device sdc): unable to find logical 3452289024 len 4096
[  455.130113] btrfsic: btrfsic_map_block(root @3452289024) failed!
[  455.130756] BTRFS critical (device sdc): unable to find logical 3451994112 len 4096
[  455.130984] btrfsic: btrfsic_map_block(root @3451994112) failed!
[  455.130988] BTRFS critical (device sdc): unable to find logical 3452010496 len 4096
[  455.131192] btrfsic: btrfsic_map_block(root @3452010496) failed!
[  455.131195] BTRFS critical (device sdc): unable to find logical 3452026880 len 4096
[  455.131401] btrfsic: btrfsic_map_block(root @3452026880) failed!
[  455.131914] Written block @25800392704 (sdc/1210236928/0) found in hash table, M, bytenr mismatch (!= stored 20968554496).
[  455.131938] Referenced block @25800409088 (sdc/1210253312/1) found in hash table, M, bytenr mismatch (!= stored 20968570880).
[  455.131971] Referenced block @25800409088 (sdc/1344471040/2) found in hash table, M, bytenr mismatch (!= stored 20968570880).
[  455.132017] Referenced block @25800425472 (sdc/1210269696/1) found in hash table, M, bytenr mismatch (!= stored 20968587264).
[  455.132030] Referenced block @25800425472 (sdc/1344487424/2) found in hash table, M, bytenr mismatch (!= stored 20968587264).
[  455.132344] Written block @25800392704 (sdc/1344454656/0) found in hash table, M, bytenr mismatch (!= stored 20968554496

I supposed there are some race problems between integrity check and
Btrfs balance, could you guys please take a look at this issue!


Best Regards,
Wang Shilong


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

* Re: Problems running Balance and checking integrity concurrently.
  2014-10-10 13:35 Problems running Balance and checking integrity concurrently Wang Shilong
@ 2014-10-16 15:48 ` Stefan Behrens
  2014-10-17  4:26   ` Wang Shilong
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Behrens @ 2014-10-16 15:48 UTC (permalink / raw)
  To: Wang Shilong; +Cc: linux-btrfs

On Fri, 10 Oct 2014 21:35:02 +0800, Wang Shilong wrote:
> Hello,
> 
> I have reproduced a problem with Btrfs integrity and balance using latest
> btrfs kernel,it is very easy to reproduce:
> 
> With mount option “check_int”, and run xfstests/btrfs/ tests, below test could definitely
> reproduce problem:
> 
> ./check tests/btrfs/014

The following two patches fix the issue.



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

* Re: Problems running Balance and checking integrity concurrently.
  2014-10-16 15:48 ` Stefan Behrens
@ 2014-10-17  4:26   ` Wang Shilong
  0 siblings, 0 replies; 3+ messages in thread
From: Wang Shilong @ 2014-10-17  4:26 UTC (permalink / raw)
  To: Stefan Behrens; +Cc: linux-btrfs


Hi Stefan Behrens,

Thanks very much for your attention!

More stress tests will be followed and will
give you feedbacks when finished.


> On Fri, 10 Oct 2014 21:35:02 +0800, Wang Shilong wrote:
>> Hello,
>> 
>> I have reproduced a problem with Btrfs integrity and balance using latest
>> btrfs kernel,it is very easy to reproduce:
>> 
>> With mount option “check_int”, and run xfstests/btrfs/ tests, below test could definitely
>> reproduce problem:
>> 
>> ./check tests/btrfs/014
> 
> The following two patches fix the issue.
> 
> 

Best Regards,
Wang Shilong


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

end of thread, other threads:[~2014-10-17  4:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-10 13:35 Problems running Balance and checking integrity concurrently Wang Shilong
2014-10-16 15:48 ` Stefan Behrens
2014-10-17  4:26   ` Wang Shilong

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).