summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-08-12 19:47:49 +0000
committeralc <alc@FreeBSD.org>2006-08-12 19:47:49 +0000
commitb3c3e1dc9536bb988bde3faca9b836e1b2a93df4 (patch)
tree3378965ef48cf3d65088ce30670e1c8b1ee0f66e /sys/kern
parent2262442192e2629c757f9cb322ad00bb8f4965cb (diff)
downloadFreeBSD-src-b3c3e1dc9536bb988bde3faca9b836e1b2a93df4.zip
FreeBSD-src-b3c3e1dc9536bb988bde3faca9b836e1b2a93df4.tar.gz
Reduce the scope of the page queues lock in vm_pgmoveco() now that
vm_page_sleep_if_busy() no longer requires the page queue lock to be held. Correctly spell "TRUE".
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index f7cc670..b7ae320 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -105,9 +105,9 @@ vm_pgmoveco(vm_map_t mapa, vm_offset_t kaddr, vm_offset_t uaddr)
VM_OBJECT_LOCK(uobject);
retry:
if ((user_pg = vm_page_lookup(uobject, upindex)) != NULL) {
- vm_page_lock_queues();
- if (vm_page_sleep_if_busy(user_pg, 1, "vm_pgmoveco"))
+ if (vm_page_sleep_if_busy(user_pg, TRUE, "vm_pgmoveco"))
goto retry;
+ vm_page_lock_queues();
pmap_remove_all(user_pg);
vm_page_free(user_pg);
} else {
OpenPOWER on IntegriCloud