svn commit: r207451 - head/sys/vm

Kip Macy kmacy at FreeBSD.org
Fri Apr 30 21:21:21 UTC 2010


Author: kmacy
Date: Fri Apr 30 21:21:21 2010
New Revision: 207451
URL: http://svn.freebsd.org/changeset/base/207451

Log:
  don't call vm_pageout_flush with the page queue mutex held
  
  Reported by: Michael Butler

Modified:
  head/sys/vm/vm_object.c

Modified: head/sys/vm/vm_object.c
==============================================================================
--- head/sys/vm/vm_object.c	Fri Apr 30 21:20:14 2010	(r207450)
+++ head/sys/vm/vm_object.c	Fri Apr 30 21:21:21 2010	(r207451)
@@ -1058,7 +1058,9 @@ vm_object_page_collect_flush(vm_object_t
 	}
 	runlen = maxb + maxf + 1;
 
+	vm_page_unlock_queues();
 	vm_pageout_flush(ma, runlen, pagerflags);
+	vm_page_lock_queues();
 	for (i = 0; i < runlen; i++) {
 		if (ma[i]->dirty) {
 			vm_page_unlock_queues();


More information about the svn-src-all mailing list