md: adjust resync_min usefully when resync aborts.
authorNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:48 +0000 (12:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:48 +0000 (12:49 +1100)
commitc07b70ad32ed0a5ec9735cafb1aa10b3a2298b7d
tree451d88cd7e44ee8217a294335a04594bd573b828
parent7820f9e1dddcfebae2698fb2a245d04ce3aa6e74
md: adjust resync_min usefully when resync aborts.

When a 'check' or 'repair' finished we should clear resync_min
so that a future check/repair will cover the whole array (by default).
However if it is interrupted, we should update resync_min to
where we got up to, so that when the check/repair continues it
just does the remainder of the array.

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