summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-04-19 00:18:14 +0000
committeralc <alc@FreeBSD.org>2010-04-19 00:18:14 +0000
commitf8993e92437269b983e0d83dc3a089ed1849a063 (patch)
tree0fa5744e87fd2ad0c3b3b6781c0ef83ff23ef10f /sys/vm/vm_glue.c
parent4f9a815abecac01cf0fb2df739683c5cfb01c867 (diff)
downloadFreeBSD-src-f8993e92437269b983e0d83dc3a089ed1849a063.zip
FreeBSD-src-f8993e92437269b983e0d83dc3a089ed1849a063.tar.gz
vm_thread_swapout() can safely dirty the page before rather than after
acquiring the page queues lock.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index bcdfd34..dbd5065d8 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -523,8 +523,8 @@ vm_thread_swapout(struct thread *td)
m = vm_page_lookup(ksobj, i);
if (m == NULL)
panic("vm_thread_swapout: kstack already missing?");
- vm_page_lock_queues();
vm_page_dirty(m);
+ vm_page_lock_queues();
vm_page_unwire(m, 0);
vm_page_unlock_queues();
}
OpenPOWER on IntegriCloud