[DRBD-cvs] svn commit by lars - r2450 - trunk/drbd - grmbl. cstate_wait != rq_wait

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Sat Sep 23 12:15:46 CEST 2006


Author: lars
Date: 2006-09-23 12:15:40 +0200 (Sat, 23 Sep 2006)
New Revision: 2450

Modified:
   trunk/drbd/drbd_int.h
Log:
grmbl. cstate_wait != rq_wait

Modified: trunk/drbd/drbd_int.h
===================================================================
--- trunk/drbd/drbd_int.h	2006-09-22 19:54:01 UTC (rev 2449)
+++ trunk/drbd/drbd_int.h	2006-09-23 10:15:40 UTC (rev 2450)
@@ -1697,6 +1697,7 @@
 	int ap_bio = atomic_dec_return(&mdev->ap_bio_cnt);
 
 	D_ASSERT(ap_bio>=0);
+	if (ap_bio == 0) wake_up(&mdev->cstate_wait);
 	if (ap_bio < mxb) wake_up(&mdev->rq_wait);
 }
 



More information about the drbd-cvs mailing list