Subject: [PATCH] md:change resync_mismatches to atomic64_t to avoid races

Now that multiple threads can handle stripes, it is safer to
use an atomic64_t for resync_mismatches, to avoid update races.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Jianpeng Ma
2012-10-11 14:17:59 +11:00
committed by NeilBrown
parent 1ed850f356
commit 7f7583d420
5 changed files with 9 additions and 8 deletions

View File

@@ -282,7 +282,7 @@ struct mddev {
sector_t resync_max_sectors; /* may be set by personality */
sector_t resync_mismatches; /* count of sectors where
atomic64_t resync_mismatches; /* count of sectors where
* parity/replica mismatch found
*/