summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-05-05 03:45:46 +0000
committeralc <alc@FreeBSD.org>2010-05-05 03:45:46 +0000
commitea7b6345be41650b664c9b86b93526b79177c75f (patch)
tree20d3f2d2748e5c26aa0ee168b8337650bc8905cd /sys/vm/vm_glue.c
parent30b63b91fa4784d0199bd0f95c61f2b6acaf8603 (diff)
downloadFreeBSD-src-ea7b6345be41650b664c9b86b93526b79177c75f.zip
FreeBSD-src-ea7b6345be41650b664c9b86b93526b79177c75f.tar.gz
Push down the acquisition of the page queues lock into vm_page_unwire().
Update the comment describing which lock should be held on entry to vm_page_wire(). Reviewed by: kib
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 288c5d7..f86212f 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -529,9 +529,7 @@ vm_thread_swapout(struct thread *td)
panic("vm_thread_swapout: kstack already missing?");
vm_page_dirty(m);
vm_page_lock(m);
- vm_page_lock_queues();
vm_page_unwire(m, 0);
- vm_page_unlock_queues();
vm_page_unlock(m);
}
VM_OBJECT_UNLOCK(ksobj);
OpenPOWER on IntegriCloud