md/raid5: correctly update sync_completed when we reach max_resync
authorNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 23:14:12 +0000 (09:14 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 23:14:12 +0000 (09:14 +1000)
commit48606a9f2fc034f0b308d088c1f7ab6d407c462c
tree4d1e9f14a3400905ff6c1a6d16c423da013bee8d
parent7a3ab908948b6296ee7e81d42f7c176361c51975
md/raid5: correctly update sync_completed when we reach max_resync

At the end of reshape_request we update cyrr_resync_completed
if we are about to pause due to reaching resync_max.
However we update it to the wrong value.  We need to add the
"reshape_sectors" that have just been reshaped.

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