Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2015 08:00:22 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r289412 - user/alc/PQ_LAUNDRY/sys/vm
Message-ID:  <201510160800.t9G80MC8034548@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510160800.t9G80MC8034548>