drbd: get rid of atomic update on disk bitmap works
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 20 Dec 2013 10:39:48 +0000 (11:39 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:34:49 +0000 (18:34 +0200)
commitc7a58db4e9dc523b18bbfbc3aa311d8308acc293
tree0860df4c69658c43adb83bd690b6d54a964ef9f2
parent70df70927b75eb86f12b14167c398b99dc3a56e4
drbd: get rid of atomic update on disk bitmap works

Just trigger the occasional lazy bitmap write-out during resync
from the central wait_for_work() helper.

Previously, during resync, bitmap pages would be written out separately,
synchronously, one at a time, at least 8 times each (every 512 bytes
worth of bitmap cleared).

Now we trigger "merge friendly" bulk write out of all cleared pages
every two seconds during resync, and once the resync is finished.
Most pages will be written out only once.

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