From 2c370f9ef0e25a7dcaf0ed6c098c81bc3ac6119b Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Wed, 15 Apr 2009 12:43:08 +0000 Subject: We don't need to grab the fpageqlock to do nothing but look at the value of uvmexp.free. "yeah, go for it" art@ --- sys/uvm/uvm_pdaemon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys') 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) { -- cgit v1.2.3