[PATCH v4 1/2] Btrfs: fix wrong super generation mismatch when scrubbing supers

2013-12-04 Thread Wang Shilong
We came a race condition when scrubbing superblocks, the story is: In commiting transaction, we will update @last_trans_commited after writting superblocks, if scrubber start after writting superblocks and before updating @last_trans_commited, generation mismatch happens! We fix this by checking

Re: [PATCH v4 1/2] Btrfs: fix wrong super generation mismatch when scrubbing supers

2013-12-04 Thread Sebastian Ochmann
Hello, seems to be working for me (only tested using both parts of the patch); wasn't able to trigger the errors after almost an hour of stress-testing. Best regards, Sebastian On 04.12.2013 14:15, Wang Shilong wrote: We came a race condition when scrubbing superblocks, the story is: In