]> git.baikalelectronics.ru Git - kernel.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)
committerNeilBrown <neilb@suse.de>
Fri, 6 Nov 2009 03:59:29 +0000 (14:59 +1100)
commit5daacbf6fc91e60fab798f4f34004334ef2c9dc7
tree4ddcb170bd131adcc022477ef96716fba5c1ab07
parent02f21fa2959b8b66bbd033b83f9a42f3eee9e34c
md/raid5: make sure curr_sync_completes is uptodate when reshape starts

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.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c