svn commit: r340174 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Tue Nov 6 02:52:55 UTC 2018


Author: markj
Date: Tue Nov  6 02:52:54 2018
New Revision: 340174
URL: https://svnweb.freebsd.org/changeset/base/340174

Log:
  Initialize last_target in the laundry thread control loop.
  
  In practice it is always initialized because nfreed must be positive
  in order to trigger background laundering, but this isn't obvious.
  
  CID:		1387997
  MFC after:	1 week

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c	Tue Nov  6 00:11:36 2018	(r340173)
+++ head/sys/vm/vm_pageout.c	Tue Nov  6 02:52:54 2018	(r340174)
@@ -973,7 +973,7 @@ vm_pageout_laundry_worker(void *arg)
 	shortfall = 0;
 	in_shortfall = false;
 	shortfall_cycle = 0;
-	target = 0;
+	last_target = target = 0;
 	nfreed = 0;
 
 	/*


More information about the svn-src-all mailing list