summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-12-18 20:16:22 +0000
committerAlan Cox <alc@FreeBSD.org>2002-12-18 20:16:22 +0000
commitee113343eb1c8cfc690137ad83e37e1cd3c8af10 (patch)
tree2b6554bfbb91c9cafd36f459ea3345952fa8b112 /sys/kern/kern_subr.c
parent88806cc28c64c81a0b63c1d2227ad90753489671 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 2df1a130a5b2..07708fc1a39f 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -125,7 +125,9 @@ vm_pgmoveco(mapa, srcobj, kaddr, uaddr)
panic("vm_pgmoveco: renaming busy page");
}
kpindex = kern_pg->pindex;
+ vm_page_lock_queues();
vm_page_busy(kern_pg);
+ vm_page_unlock_queues();
vm_page_rename(kern_pg, uobject, upindex);
vm_page_flag_clear(kern_pg, PG_BUSY);
kern_pg->valid = VM_PAGE_BITS_ALL;