]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: make sure curr_sync_completes is uptodate when reshape starts
authorNeilBrown <neilb@suse.de>
Fri, 6 Nov 2009 03:59:29 +0000 (14:59 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:20:57 +0000 (10:20 -0800)
commit8a7963564a8288a2c98d1c924d09ac0697b8f92c
treecdbc5db4f99e51188d5d66fda36d31a6eb385611
parent98bc571940095198eec1e4b9af70bf9024b5f539
md/raid5: make sure curr_sync_completes is uptodate when reshape starts

commit 8dee7211467a56b7eb4e4359efb0aa4a72e1b6f3 upstream.

This value is visible through sysfs and is used by mdadm
when it manages a reshape (backing up data that is about to be
rearranged).  So it is important that it is always correct.
Current it does not get updated properly when a reshape
starts which can cause problems when assembling an array
that is in the middle of being reshaped.

This is suitable for 2.6.31.y stable kernels.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid5.c