Module Name:    src
Committed By:   pooka
Date:           Thu Sep  9 09:59:48 UTC 2010

Modified Files:
        src/tests/rump/kernspace: busypage.c

Log Message:
hold object lock across page unbusy


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/rump/kernspace/busypage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/rump/kernspace/busypage.c
diff -u src/tests/rump/kernspace/busypage.c:1.2 src/tests/rump/kernspace/busypage.c:1.3
--- src/tests/rump/kernspace/busypage.c:1.2	Wed Sep  8 20:40:24 2010
+++ src/tests/rump/kernspace/busypage.c	Thu Sep  9 09:59:48 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: busypage.c,v 1.2 2010/09/08 20:40:24 pooka Exp $	*/
+/*	$NetBSD: busypage.c,v 1.3 2010/09/09 09:59:48 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: busypage.c,v 1.2 2010/09/08 20:40:24 pooka Exp $");
+__RCSID("$NetBSD: busypage.c,v 1.3 2010/09/09 09:59:48 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/param.h>
@@ -83,9 +83,9 @@
 	mutex_enter(&uobj->vmobjlock);
 	while (!threadrun)
 		cv_wait(&tcv, &uobj->vmobjlock);
-	mutex_exit(&uobj->vmobjlock);
 
 	uvm_page_unbusy(&testpg, 1);
+	mutex_exit(&uobj->vmobjlock);
 
 	rv = kthread_join(newl);
 	if (rv)

Reply via email to