summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-10-22 21:18:48 +0000
committeralc <alc@FreeBSD.org>2006-10-22 21:18:48 +0000
commit5d9c66a3f8fe76b65b02406c551668f4b645abf5 (patch)
tree43e03c6bedc6aa126229bf727c93fe15277a8a53 /sys/kern/kern_exec.c
parentcc74fcabb418a714919dc9abc75e57e47b0a058c (diff)
downloadFreeBSD-src-5d9c66a3f8fe76b65b02406c551668f4b645abf5.zip
FreeBSD-src-5d9c66a3f8fe76b65b02406c551668f4b645abf5.tar.gz
The page queues lock is no longer required by vm_page_busy() or
vm_page_wakeup(). Reduce or eliminate its use accordingly.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index be7dbe6..e513908 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -829,9 +829,7 @@ exec_map_first_page(imgp)
break;
if ((ma[i]->oflags & VPO_BUSY) || ma[i]->busy)
break;
- vm_page_lock_queues();
vm_page_busy(ma[i]);
- vm_page_unlock_queues();
} else {
ma[i] = vm_page_alloc(object, i,
VM_ALLOC_NORMAL);
@@ -855,8 +853,8 @@ exec_map_first_page(imgp)
}
vm_page_lock_queues();
vm_page_hold(ma[0]);
- vm_page_wakeup(ma[0]);
vm_page_unlock_queues();
+ vm_page_wakeup(ma[0]);
VM_OBJECT_UNLOCK(object);
imgp->firstpage = sf_buf_alloc(ma[0], 0);
OpenPOWER on IntegriCloud