summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_pdaemon.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-04-15 12:43:07 +0000
committeroga <oga@openbsd.org>2009-04-15 12:43:07 +0000
commitf65c48944434ebfbdff67f446425db76840afe05 (patch)
tree4e9e6adec91a5bbc5b051d3e40bdfbb65b0fde6c /sys/uvm/uvm_pdaemon.c
parentMisplaced comment. (diff)
downloadwireguard-openbsd-f65c48944434ebfbdff67f446425db76840afe05.tar.xz
wireguard-openbsd-f65c48944434ebfbdff67f446425db76840afe05.zip
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/uvm_pdaemon.c')
-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) {