drbd: Dropped wrong clause to generate new current UUIDs
authorPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 15 Jul 2011 10:14:27 +0000 (12:14 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:57:56 +0000 (16:57 +0100)
Looks like a remainder from long ago.

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

index eafc19532e1506591023e67378b65b1ee07bc3e0..1763357a065a532050124fc950fcb9364d25d45d 100644 (file)
@@ -1239,11 +1239,6 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
        }
 
        if (ns.pdsk < D_INCONSISTENT && get_ldev(mdev)) {
-               if (ns.peer == R_PRIMARY && mdev->ldev->md.uuid[UI_BITMAP] == 0) {
-                       drbd_uuid_new_current(mdev);
-                       drbd_send_uuids(mdev);
-               }
-
                /* D_DISKLESS Peer becomes secondary */
                if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY)
                        /* We may still be Primary ourselves.