[DRBD-cvs] svn commit by phil - r2967 - branches/drbd-8.0/drbd - What is currently the quickest way to OOPS the kernel w

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Thu Jul 12 16:44:03 CEST 2007


Author: phil
Date: 2007-07-12 16:44:02 +0200 (Thu, 12 Jul 2007)
New Revision: 2967

Modified:
   branches/drbd-8.0/drbd/drbd_nl.c
Log:
What is currently the quickest way to OOPS the kernel with 
the help of DRBD ?

  drbdadm detach r0
  drbdadm primary r0
  
Fixed this embarrassing bug.


Modified: branches/drbd-8.0/drbd/drbd_nl.c
===================================================================
--- branches/drbd-8.0/drbd/drbd_nl.c	2007-07-10 13:46:08 UTC (rev 2966)
+++ branches/drbd-8.0/drbd/drbd_nl.c	2007-07-12 14:44:02 UTC (rev 2967)
@@ -330,10 +330,13 @@
 		mdev->this_bdev->bd_disk = mdev->vdisk;
 		 */
 
-		if ( ( ( mdev->state.conn < Connected ||
-			 mdev->state.pdsk <= Failed ) &&
-		       mdev->bc->md.uuid[Bitmap] == 0) || forced ) {
-			drbd_uuid_new_current(mdev);
+		if ( inc_local(mdev) ) {
+			if ( ( ( mdev->state.conn < Connected ||
+				 mdev->state.pdsk <= Failed ) &&
+			       mdev->bc->md.uuid[Bitmap] == 0) || forced ) {
+				drbd_uuid_new_current(mdev);
+			}
+			dec_local(mdev);
 		}
 	}
 



More information about the drbd-cvs mailing list