[DRBD-cvs] svn commit by phil - r2088 - trunk/drbd - The first fix from tests on hans-wurst. Now the "detach

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Mar 1 19:02:04 CET 2006


Author: phil
Date: 2006-03-01 19:02:03 +0100 (Wed, 01 Mar 2006)
New Revision: 2088

Modified:
   trunk/drbd/drbd_main.c
Log:
The first fix from tests on hans-wurst. Now the "detach"
command works also an SMP-preempt machines.


Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c	2006-03-01 16:36:23 UTC (rev 2087)
+++ trunk/drbd/drbd_main.c	2006-03-01 18:02:03 UTC (rev 2088)
@@ -729,13 +729,6 @@
 		}
 	}
 
-	/* it feels better to have the module_put last ... */
-	if ( (os.disk > Diskless || os.conn > StandAlone) &&
-	     ns.disk == Diskless && ns.conn == StandAlone ) {
-		drbd_mdev_cleanup(mdev);
-		module_put(THIS_MODULE);
-	}
-
 	return rv;
 }
 
@@ -820,6 +813,13 @@
 	        ns.aftr_isp == 0 && ns.user_isp == 0   ) {
 		drbd_send_short_cmd(mdev,ResumeResync);
 	}
+
+	/* it feels better to have the module_put last ... */
+	if ( (os.disk > Diskless || os.conn > StandAlone) &&
+	     ns.disk == Diskless && ns.conn == StandAlone ) {
+		drbd_mdev_cleanup(mdev);
+		module_put(THIS_MODULE);
+	}
 }
 
 



More information about the drbd-cvs mailing list