[prev in list] [next in list] [prev in thread] [next in thread]
List: drbd-cvs
Subject: [DRBD-cvs] svn commit by phil - r2607 - trunk/drbd - The fix for
From: drbd-cvs () linbit ! com
Date: 2006-12-01 9:42:00
Message-ID: 20061201094206.1B5912D9E1DA () mail ! linbit ! com
[Download RAW message or body]
Author: phil
Date: 2006-12-01 10:41:58 +0100 (Fri, 01 Dec 2006)
New Revision: 2607
Modified:
trunk/drbd/drbd_int.h
trunk/drbd/drbd_main.c
trunk/drbd/drbd_receiver.c
Log:
The fix for the "both nodes in WFBitMaps" issue, Ernest reported.
Modified: trunk/drbd/drbd_int.h
===================================================================
--- trunk/drbd/drbd_int.h 2006-11-30 15:00:22 UTC (rev 2606)
+++ trunk/drbd/drbd_int.h 2006-12-01 09:41:58 UTC (rev 2607)
@@ -853,6 +853,7 @@
unsigned int peer_seq;
spinlock_t peer_seq_lock;
int minor;
+ unsigned long comm_bm_set; // communicated number of set bits.
};
static inline drbd_dev *minor_to_mdev(int minor)
Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c 2006-11-30 15:00:22 UTC (rev 2606)
+++ trunk/drbd/drbd_main.c 2006-12-01 09:41:58 UTC (rev 2607)
@@ -1288,7 +1288,8 @@
: 0;
}
- p.uuid[UUID_SIZE] = cpu_to_be64(drbd_bm_total_weight(mdev));
+ mdev->comm_bm_set = drbd_bm_total_weight(mdev);
+ p.uuid[UUID_SIZE] = cpu_to_be64(mdev->comm_bm_set);
uuid_flags |= mdev->net_conf->want_lose ? 1 : 0;
uuid_flags |= test_bit(CRASHED_PRIMARY, &mdev->flags) ? 2 : 0;
p.uuid[UUID_FLAGS] = cpu_to_be64(uuid_flags);
Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c 2006-11-30 15:00:22 UTC (rev 2606)
+++ trunk/drbd/drbd_receiver.c 2006-12-01 09:41:58 UTC (rev 2607)
@@ -1668,7 +1668,7 @@
peer = mdev->p_uuid[Bitmap] & 1;
ch_peer = mdev->p_uuid[UUID_SIZE];
- ch_self = drbd_bm_total_weight(mdev);
+ ch_self = mdev->comm_bm_set;
switch ( mdev->net_conf->after_sb_0p ) {
case Consensus:
_______________________________________________
drbd-cvs mailing list
drbd-cvs@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic