diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2010-10-13 11:37:54 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 12:38:52 -0400 |
commit | 13d42685bec1f012dcbc5d187490eb1d15ec8219 (patch) | |
tree | 977f7bdc5ed6c045a522e9bda46d456319dc9c91 /drivers/block | |
parent | b18b37befb37810ce50e1a9b0a6206dfe363d827 (diff) |
drbd: add explicit drbd_md_sync to drbd_resync_finished
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index f12822d53867..108d58015cd1 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c | |||
@@ -922,6 +922,8 @@ out: | |||
922 | mdev->rs_paused = 0; | 922 | mdev->rs_paused = 0; |
923 | mdev->ov_start_sector = 0; | 923 | mdev->ov_start_sector = 0; |
924 | 924 | ||
925 | drbd_md_sync(mdev); | ||
926 | |||
925 | if (test_and_clear_bit(WRITE_BM_AFTER_RESYNC, &mdev->flags)) { | 927 | if (test_and_clear_bit(WRITE_BM_AFTER_RESYNC, &mdev->flags)) { |
926 | dev_warn(DEV, "Writing the whole bitmap, due to failed kmalloc\n"); | 928 | dev_warn(DEV, "Writing the whole bitmap, due to failed kmalloc\n"); |
927 | drbd_queue_bitmap_io(mdev, &drbd_bm_write, NULL, "write from resync_finished"); | 929 | drbd_queue_bitmap_io(mdev, &drbd_bm_write, NULL, "write from resync_finished"); |