[DRBD-cvs] svn commit by phil - r2492 - branches/drbd-0.7/drbd - Small typo, with big impact...

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Tue Oct 3 13:31:09 CEST 2006


Author: phil
Date: 2006-10-03 13:31:08 +0200 (Tue, 03 Oct 2006)
New Revision: 2492

Modified:
   branches/drbd-0.7/drbd/drbd_main.c
Log:
Small typo, with big impact...


Modified: branches/drbd-0.7/drbd/drbd_main.c
===================================================================
--- branches/drbd-0.7/drbd/drbd_main.c	2006-10-03 10:56:07 UTC (rev 2491)
+++ branches/drbd-0.7/drbd/drbd_main.c	2006-10-03 11:31:08 UTC (rev 2492)
@@ -1045,7 +1045,7 @@
 	/* drbd_disconnect may have freed that socket while we were waiting
 	 * in down(). we have to check that, to avoid a race with tl_clear
 	 * cleaning up before we can tl_add */
-	if (unlikely(mdev->data.socket)) {
+	if (unlikely(!mdev->data.socket)) {
 		/* this req is not in the tl, tl_clear cannot find it.
 		 * we cannot just tl_add it here, either, because tl_clear
 		 * might be done already.  so we have to mark this request



More information about the drbd-cvs mailing list