drbd: only reset online-verify start sector if verify completed
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 5 Nov 2010 08:56:33 +0000 (09:56 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:18:49 +0000 (11:18 +0100)
commit26525618863afcc4aab8b2a83451d37c6f513460
tree71a0d52eb8bc30a5abe61bd58098a19fce83658f
parent4c63f5646e405b5010cc9499419060bf2e838f5b
drbd: only reset online-verify start sector if verify completed

For network hickups during online-verify, on the next verify
triggered, we by default want to resume where it left off.

After any replication link interruption, there will be a (possibly
empty) resync.  Do not reset online-verify start sector if some resync
completed, that would defeats the purpose.

Only reset the start sector once a verify run is completed.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_worker.c