svn commit: r206823 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Mon Apr 19 00:18:15 UTC 2010
Author: alc
Date: Mon Apr 19 00:18:14 2010
New Revision: 206823
URL: http://svn.freebsd.org/changeset/base/206823
Log:
vm_thread_swapout() can safely dirty the page before rather than after
acquiring the page queues lock.
Modified:
head/sys/vm/vm_glue.c
Modified: head/sys/vm/vm_glue.c
==============================================================================
--- head/sys/vm/vm_glue.c Sun Apr 18 22:51:20 2010 (r206822)
+++ head/sys/vm/vm_glue.c Mon Apr 19 00:18:14 2010 (r206823)
@@ -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();
}
More information about the svn-src-all
mailing list