svn commit: r188900 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sat Feb 21 12:57:26 PST 2009
Author: alc
Date: Sat Feb 21 20:57:25 2009
New Revision: 188900
URL: http://svn.freebsd.org/changeset/base/188900
Log:
Reduce the scope of the page queues lock in vm_object_page_remove().
MFC after: 1 week
Modified:
head/sys/vm/vm_object.c
Modified: head/sys/vm/vm_object.c
==============================================================================
--- head/sys/vm/vm_object.c Sat Feb 21 19:25:13 2009 (r188899)
+++ head/sys/vm/vm_object.c Sat Feb 21 20:57:25 2009 (r188900)
@@ -1869,7 +1869,6 @@ vm_object_page_remove(vm_object_t object
vm_object_pip_add(object, 1);
again:
- vm_page_lock_queues();
if ((p = TAILQ_FIRST(&object->memq)) != NULL) {
if (p->pindex < start) {
p = vm_page_splay(start, object->root);
@@ -1877,6 +1876,7 @@ again:
p = TAILQ_NEXT(p, listq);
}
}
+ vm_page_lock_queues();
/*
* Assert: the variable p is either (1) the page with the
* least pindex greater than or equal to the parameter pindex
More information about the svn-src-all
mailing list