From 01ad40dac5c0dd684387ff7e9f3a1a8184b967fe Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 24 Oct 2004 20:09:59 +0000 Subject: [PATCH] Use VM_ALLOC_NOBUSY instead of calling vm_page_wakeup(). --- sys/kern/uipc_syscalls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 49b6511f5744..717c4f1666eb 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1835,7 +1835,7 @@ retry_lookup: pg = vm_page_lookup(obj, pindex); if (pg == NULL) { - pg = vm_page_alloc(obj, pindex, + pg = vm_page_alloc(obj, pindex, VM_ALLOC_NOBUSY | VM_ALLOC_NORMAL | VM_ALLOC_WIRED); if (pg == NULL) { VM_OBJECT_UNLOCK(obj); @@ -1844,7 +1844,6 @@ retry_lookup: goto retry_lookup; } vm_page_lock_queues(); - vm_page_wakeup(pg); } else { vm_page_lock_queues(); if (vm_page_sleep_if_busy(pg, TRUE, "sfpbsy"))