NeilBrown ff4e8d9a9f [PATCH] md: fix resync speed calculation for restarted resyncs
We introduced 'io_sectors' recently so we could count the sectors that causes
io during resync separate from sectors which didn't cause IO - there can be a
difference if a bitmap is being used to accelerate resync.

However when a speed is reported, we find the number of sectors processed
recently by subtracting an oldish io_sectors count from a current
'curr_resync' count.  This is wrong because curr_resync counts all sectors,
not just io sectors.

So, add a field to mddev to store the curren io_sectors separately from
curr_resync, and use that in the calculations.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-10 13:24:16 -07:00
..
2006-07-09 08:47:46 -07:00
2006-07-08 13:30:09 -07:00
2006-07-10 13:24:12 -07:00
2006-06-23 07:43:06 -07:00
2006-07-03 15:27:07 -07:00
2006-07-10 13:24:15 -07:00
2006-07-10 13:24:15 -07:00
2006-07-03 09:41:12 -05:00
2006-07-03 21:29:08 -07:00
2006-07-10 13:24:15 -07:00
2006-07-10 13:24:12 -07:00
2006-07-08 13:34:32 -07:00
2006-06-23 07:43:06 -07:00
2006-06-17 21:18:43 -07:00