svn commit: r289412 - user/alc/PQ_LAUNDRY/sys/vm

Alan Cox alc at FreeBSD.org
Fri Oct 16 08:00:23 UTC 2015


Author: alc
Date: Fri Oct 16 08:00:22 2015
New Revision: 289412
URL: https://svnweb.freebsd.org/changeset/base/289412

Log:
  Update vm_pageout_worker() to reflect the fact that dirty page laundering
  no longer occurs in vm_pageout_scan().

Modified:
  user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c

Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
==============================================================================
--- user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c	Fri Oct 16 05:59:59 2015	(r289411)
+++ user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c	Fri Oct 16 08:00:22 2015	(r289412)
@@ -1775,13 +1775,12 @@ vm_pageout_worker(void *arg)
 			 * set by another thread during the previous scan
 			 * (typically, this happens during a level 0 scan) or
 			 * vm_pages_needed was already set and the scan failed
-			 * to free enough pages.  If we haven't yet performed
-			 * a level >= 2 scan (unlimited dirty cleaning), then
-			 * upgrade the level and scan again now.  Otherwise,
-			 * sleep a bit and try again later.  While sleeping,
-			 * vm_pages_needed can be cleared.
+			 * to free enough pages.  If we've only performed a
+			 * level 0 scan, then upgrade the level and scan again
+			 * now.  Otherwise, sleep a bit and try again later.
+			 * While sleeping, vm_pages_needed can be cleared.
 			 */
-			if (domain->vmd_pass > 1)
+			if (domain->vmd_pass > 0)
 				msleep(&vm_pages_needed,
 				    &vm_page_queue_free_mtx, PVM, "psleep",
 				    hz / 2);


More information about the svn-src-user mailing list