aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-06-20 00:48:20 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-06-20 00:48:20 +0000
commit69a78d4666397617a31c8a72887228ea8230f849 (patch)
tree14e8fdc68f6ae7f6fc728034f3327d2b05196aed /sys/vm/vm_glue.c
parent29dfd70b01ccede6910aa3b690d89889db6103bd (diff)
downloadsrc-69a78d4666397617a31c8a72887228ea8230f849.tar.gz
src-69a78d4666397617a31c8a72887228ea8230f849.zip
Put the scheduler, vmdaemon, and pagedaemon kthreads back under Giant for
now. The proc locking isn't actually safe yet and won't be until the proc locking is finished.
Notes
Notes: svn path=/head/; revision=78481
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 3a4ebcacdaf1..ba14789b2717 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -374,7 +374,6 @@ scheduler(dummy)
int ppri;
mtx_assert(&Giant, MA_OWNED | MA_NOTRECURSED);
- mtx_unlock(&Giant);
loop:
mtx_lock(&vm_mtx);
@@ -426,11 +425,9 @@ loop:
/*
* We would like to bring someone in. (only if there is space).
*/
- mtx_lock(&Giant);
PROC_LOCK(p);
faultin(p);
PROC_UNLOCK(p);
- mtx_unlock(&Giant);
mtx_lock_spin(&sched_lock);
p->p_swtime = 0;
mtx_unlock_spin(&sched_lock);