]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drbd: add explicit drbd_md_sync to drbd_resync_finished
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 13 Oct 2010 15:37:54 +0000 (17:37 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:52 +0000 (18:38 +0200)
As we usually update the generation UUIDs here, we should explicitly
sync them to disk.  So far this has been done only implicitly by related
code paths.

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

index f12822d5386757686bf3530fe9563f77cef49e71..108d58015cd119a6e85873095acab12ab011a6cc 100644 (file)
@@ -922,6 +922,8 @@ out:
        mdev->rs_paused = 0;
        mdev->ov_start_sector = 0;
 
+       drbd_md_sync(mdev);
+
        if (test_and_clear_bit(WRITE_BM_AFTER_RESYNC, &mdev->flags)) {
                dev_warn(DEV, "Writing the whole bitmap, due to failed kmalloc\n");
                drbd_queue_bitmap_io(mdev, &drbd_bm_write, NULL, "write from resync_finished");