md: Update checkpoint of resync/recovery based on time.
authormajianpeng <majianpeng@gmail.com>
Wed, 31 Oct 2012 00:59:10 +0000 (11:59 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 13 Dec 2012 05:41:40 +0000 (16:41 +1100)
commit54f89341e8b8da0cdac8a7b873491739de19f098
tree360f937ada4613db9772ef1a28f9503cb4457169
parent35d78c66969fbbb51046e9f251849cf54e9ed88c
md: Update checkpoint of resync/recovery based on time.

md will current only only checkpoint recovery or resync ever 1/16th
of the device size.  As devices get larger this can become a long time
an so a lot of work that might need to be duplicated after a shutdown.

So add a time-based checkpoint.  Every 5 minutes limits the amount of
duplicated effort to at most 5 minutes, and has almost zero impact on
performance.

[changelog entry re-written by NeilBrown]

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c