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

Mark Johnston markj at FreeBSD.org
Mon Aug 8 19:59:09 UTC 2016


Author: markj
Date: Mon Aug  8 19:59:08 2016
New Revision: 303851
URL: https://svnweb.freebsd.org/changeset/base/303851

Log:
  Reset the laundering target if we haven't met it after the last cycle.
  
  Reviewed by:	alc

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	Mon Aug  8 19:44:13 2016	(r303850)
+++ user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c	Mon Aug  8 19:59:08 2016	(r303851)
@@ -1165,8 +1165,12 @@ vm_pageout_laundry_worker(void *arg)
 			 */
 			target = min(target, bkgrd_launder_max);
 		}
-		if (target > 0 && cycle != 0)
-			launder = target / cycle--;
+		if (target > 0) {
+			if (cycle != 0)
+				launder = target / cycle--;
+			else
+				target = 0;
+		}
 
 dolaundry:
 		if (launder > 0)


More information about the svn-src-user mailing list