From: Stefan Behrens Date: Tue, 27 Nov 2012 16:10:21 +0000 (+0000) Subject: Btrfs: fix race in check-integrity caused by usage of bitfield X-Git-Tag: v3.8-rc1~71^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb3806ec88a7e1e9d1fbde34cbc0bf153b7e7c3f;p=pandora-kernel.git Btrfs: fix race in check-integrity caused by usage of bitfield The structure member mirror_num is modified concurrently to the structure member is_iodone. This doesn't require any locking by design, unless everything is stored in the same 32 bits of a bit field. This was the case and xfstest 284 was able to trigger false warnings from the checker code. This patch seperates the bits and fixes the race. Signed-off-by: Stefan Behrens Signed-off-by: Chris Mason --- Reading git-diff-tree failed