md: Use ->curr_resync as last completed request when cleanly aborting resync.
authormajianpeng <majianpeng@gmail.com>
Mon, 19 Nov 2012 11:57:34 +0000 (19:57 +0800)
committerNeilBrown <neilb@suse.de>
Thu, 13 Dec 2012 08:52:11 +0000 (19:52 +1100)
If a resync is aborted cleanly, ->curr_resync is a reliable
record of where we got up to.
If there was an error it is less reliable but we always know that
->curr_resync_completed is safe.

So add a flag MD_RECOVERY_ERROR to differentiate between these cases
and set recovery_cp accordingly.

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

diff --cc drivers/md/md.c
Simple merge
diff --cc drivers/md/md.h
Simple merge