]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: Write all pages of the bitmap after an online resize
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 8 Aug 2012 19:19:09 +0000 (21:19 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 16 Aug 2012 15:17:35 +0000 (17:17 +0200)
commitd04ce68bc1940402033f558d8e7eae1a6d0efb3e
tree899936a815b7f40fe65aa0bc1b832ebef7a89802
parent4959a86c64fa4003c983c4b5e8707753a28a886b
drbd: Write all pages of the bitmap after an online resize

We need to write the whole bitmap after we moved the meta data
due to an online resize operation.

With the support for one peta byte devices bitmap IO was optimized
to only write out touched pages. This optimization must be turned
off when writing the bitmap after an online resize.

This issue was introduced with drbd-8.3.10.

The impact of this bug is that after an online resize, the next
resync could become larger than expected.

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