[DRBD-cvs] svn commit by phil - r2694 - trunk/drbd - Need to keep the "local_cnt" in balance. This was the l

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Mon Jan 15 20:17:56 CET 2007


Author: phil
Date: 2007-01-15 20:17:53 +0100 (Mon, 15 Jan 2007)
New Revision: 2694

Modified:
   trunk/drbd/drbd_actlog.c
Log:
Need to keep the "local_cnt" in balance. This was the last 
showstopper for the resync-is-finished-by-app-IO toppic.
Now everything works fine in this case.


Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c	2007-01-15 14:26:17 UTC (rev 2693)
+++ trunk/drbd/drbd_actlog.c	2007-01-15 19:17:53 UTC (rev 2694)
@@ -1176,6 +1176,7 @@
 			if(bm_ext->lce.refcnt != 0) {
 				INFO("Retrying drbd_rs_del_all() later. "
 				     "refcnt=%d\n",bm_ext->lce.refcnt);
+				dec_local(mdev);
 				spin_unlock_irq(&mdev->al_lock);
 				return -EAGAIN;
 			}



More information about the drbd-cvs mailing list