Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 19:59:02 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364935 - head/sys/vm
Message-ID:  <202008281959.07SJx2bV087621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Fri Aug 28 19:59:02 2020
New Revision: 364935
URL: https://svnweb.freebsd.org/changeset/base/364935

Log:
  vm_pageout_scan_active: ensure ps_delta is initialized
  
  Reported by:	Coverity
  Reviewed by:	markj
  MFC after:	2 weeks
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D26212

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c	Fri Aug 28 19:52:16 2020	(r364934)
+++ head/sys/vm/vm_pageout.c	Fri Aug 28 19:59:02 2020	(r364935)
@@ -1287,8 +1287,10 @@ act_scan:
 			 * so, discarding any references collected by
 			 * pmap_ts_referenced().
 			 */
-			if (__predict_false(_vm_page_queue(old) == PQ_NONE))
+			if (__predict_false(_vm_page_queue(old) == PQ_NONE)) {
+				ps_delta = 0;
 				break;
+			}
 
 			/*
 			 * Advance or decay the act_count based on recent usage.



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