summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-15 12:43:08 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-15 12:43:08 +0000
commit2c370f9ef0e25a7dcaf0ed6c098c81bc3ac6119b (patch)
treec14797255302e222894b825e241214bd27997922 /sys/uvm
parent85d5cda90ba32ee31ae88e0e3ad9920c17f9e00a (diff)
We don't need to grab the fpageqlock to do nothing but look at the value
of uvmexp.free. "yeah, go for it" art@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_pdaemon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/uvm/uvm_pdaemon.c b/sys/uvm/uvm_pdaemon.c
index c64530bcac2..73643946a79 100644
--- a/sys/uvm/uvm_pdaemon.c
+++ b/sys/uvm/uvm_pdaemon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pdaemon.c,v 1.40 2009/04/14 20:12:05 oga Exp $ */
+/* $OpenBSD: uvm_pdaemon.c,v 1.41 2009/04/15 12:43:07 oga Exp $ */
/* $NetBSD: uvm_pdaemon.c,v 1.23 2000/08/20 10:24:14 bjh21 Exp $ */
/*
@@ -381,10 +381,7 @@ uvmpd_scan_inactive(struct pglist *pglst)
* update our copy of "free" and see if we've met
* our target
*/
-
- uvm_lock_fpageq();
free = uvmexp.free - BUFPAGES_DEFICIT;
- uvm_unlock_fpageq();
if (free + uvmexp.paging >= uvmexp.freetarg << 2 ||
dirtyreacts == UVMPD_NUMDIRTYREACTS) {