]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Subject: [PATCH] md:change resync_mismatches to atomic64_t to avoid races
authorJianpeng Ma <majianpeng@gmail.com>
Thu, 27 Sep 2012 02:37:30 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:30 +0000 (12:37 +1000)
commitc5725e524f680afb031773b5e446dcb946c26638
tree60274c239589d11c2dbd9c2d13ad46ba58f1d4d3
parent998534eaa0b02dc6446ebb07ac14b9e3e9bb3ee2
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>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c