[DRBD-cvs] svn commit by lars - r2735 - trunk/drbd - balance the inc/dec local

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Jan 31 14:47:18 CET 2007


Author: lars
Date: 2007-01-31 14:47:17 +0100 (Wed, 31 Jan 2007)
New Revision: 2735

Modified:
   trunk/drbd/drbd_actlog.c
Log:
balance the inc/dec local

Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c	2007-01-31 13:21:08 UTC (rev 2734)
+++ trunk/drbd/drbd_actlog.c	2007-01-31 13:47:17 UTC (rev 2735)
@@ -623,7 +623,12 @@
 
 	bios[i] = bio;
 	atomic_inc(&wc->count);
-	inc_local(mdev);
+	/* we already know that we may do this...
+	 * inc_local_if_state(mdev,Attaching);
+	 * so just get the extra reference for the fun of it,
+	 * but do so directly.
+	 */
+	atomic_inc(&mdev->local_cnt);
 	return 0;
 }
 



More information about the drbd-cvs mailing list