[DRBD-cvs] svn commit by phil - r2458 - trunk/drbd - clearly right.

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Mon Sep 25 15:53:22 CEST 2006


Author: phil
Date: 2006-09-25 15:53:21 +0200 (Mon, 25 Sep 2006)
New Revision: 2458

Modified:
   trunk/drbd/drbd_nl.c
Log:
clearly right.


Modified: trunk/drbd/drbd_nl.c
===================================================================
--- trunk/drbd/drbd_nl.c	2006-09-25 13:41:40 UTC (rev 2457)
+++ trunk/drbd/drbd_nl.c	2006-09-25 13:53:21 UTC (rev 2458)
@@ -283,8 +283,9 @@
 		}
 	}
 
-	if(mdev->state.disk > Diskless && (new_role & Secondary)) {
+	if((new_role & Secondary) && inc_local(mdev) ) {
 		drbd_al_to_on_disk_bm(mdev);
+		dec_local(mdev);
 	}
 
 	if (mdev->state.conn >= WFReportParams) {



More information about the drbd-cvs mailing list