Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 16:47:00 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r240143 - stable/9/sys/vm
Message-ID:  <201209051647.q85Gl0VJ070328@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Sep  5 16:47:00 2012
New Revision: 240143
URL: http://svn.freebsd.org/changeset/base/240143

Log:
  MFC r238604:
  Do not restart scan of the inactive queue when non-inactive page is
  found. Rather, we shall not find such pages on inactive queue at all.

Modified:
  stable/9/sys/vm/vm_pageout.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/vm/vm_pageout.c
==============================================================================
--- stable/9/sys/vm/vm_pageout.c	Wed Sep  5 16:35:37 2012	(r240142)
+++ stable/9/sys/vm/vm_pageout.c	Wed Sep  5 16:47:00 2012	(r240143)
@@ -786,7 +786,6 @@ vm_pageout_scan(int pass)
 		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 @@ rescan0:
 	     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);
 
 		/*



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