[Midnightbsd-cvs] src [8012] trunk/sys/vm/vm_pageout.c: do not restart scan of the inacive queue when non-inactive page is found.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 15 05:00:56 EDT 2016


Revision: 8012
          http://svnweb.midnightbsd.org/src/?rev=8012
Author:   laffer1
Date:     2016-09-15 05:00:56 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
do not restart scan of the inacive queue when non-inactive page is found. Rather, we shall not find such pages on inactive queue at all. Obtained from: FreeBSD

Modified Paths:
--------------
    trunk/sys/vm/vm_pageout.c

Modified: trunk/sys/vm/vm_pageout.c
===================================================================
--- trunk/sys/vm/vm_pageout.c	2016-09-15 09:00:03 UTC (rev 8011)
+++ trunk/sys/vm/vm_pageout.c	2016-09-15 09:00:56 UTC (rev 8012)
@@ -786,7 +786,6 @@
 		maxlaunder = 10000;
 	vm_page_lock_queues();
 	queues_locked = TRUE;
-rescan0:
 	addl_page_shortage = addl_page_shortage_init;
 	maxscan = cnt.v_inactive_count;
 
@@ -795,12 +794,9 @@
 	     m = next) {
 		KASSERT(queues_locked, ("unlocked queues"));
 		mtx_assert(&vm_page_queue_mtx, MA_OWNED);
+		KASSERT(m->queue == PQ_INACTIVE, ("Inactive queue %p", m));
 
 		cnt.v_pdpages++;
-
-		if (m->queue != PQ_INACTIVE)
-			goto rescan0;
-
 		next = TAILQ_NEXT(m, pageq);
 
 		/*



More information about the Midnightbsd-cvs mailing list