summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-06-20 00:48:20 +0000
committerjhb <jhb@FreeBSD.org>2001-06-20 00:48:20 +0000
commit3910f65aa276a42bb870032078b48e97a495de0f (patch)
tree14e8fdc68f6ae7f6fc728034f3327d2b05196aed /sys/vm/vm_glue.c
parentc355fb47d5d77dde5509dedef1f14c88260c5c31 (diff)
downloadFreeBSD-src-3910f65aa276a42bb870032078b48e97a495de0f.zip
FreeBSD-src-3910f65aa276a42bb870032078b48e97a495de0f.tar.gz
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.
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 3a4ebca..ba14789 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);
OpenPOWER on IntegriCloud