drbd: implement csums-after-crash-only
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 18 Mar 2014 11:30:09 +0000 (12:30 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:00 +0000 (18:35 +0200)
commitaaaba34576407857f6146ff6c330f06e63fb2bf2
tree6cd468ecb123314d06c641185410f6cbce58c504
parent6a8d68b1878e8839b4927150da236c8248703c70
drbd: implement csums-after-crash-only

Checksum based resync trades CPU cycles for network bandwidth,
in situations where we expect much of the to-be-resynced blocks
to be actually identical on both sides already.

In a "network hickup" scenario, it won't help:
all to-be-resynced blocks will typically be different.

The use case is for the resync of *potentially* different blocks
after crash recovery -- the crash recovery had marked larger areas
(those covered by the activity log) as need-to-be-resynced,
just in case. Most of those blocks will be identical.

This option makes it possible to configure checksum based resync,
but only actually use it for the first resync after primary crash.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c
include/linux/drbd_genl.h
include/linux/drbd_limits.h
This page took 0.034715 seconds and 5 git commands to generate.