Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2015 17:45:11 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288274 - head/sys/vm
Message-ID:  <201509261745.t8QHjBll000549@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Sep 26 17:45:10 2015
New Revision: 288274
URL: https://svnweb.freebsd.org/changeset/base/288274

Log:
  Exploit r288122 to address a cosmetic issue.  Since the pages allocated
  by noobj_alloc() don't belong to a vm object, they can't be paged out.
  Since they can't be paged out, they are never enqueued in a paging queue.
  Nonetheless, passing PQ_INACTIVE to vm_page_unwire() creates the appearance
  that these pages are being enqueued in the inactive queue.  As of r288122,
  we can avoid giving this false impression by passing PQ_NONE.
  
  Submitted by:	kmacy
  Differential Revision:	https://reviews.freebsd.org/D1674

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Sat Sep 26 16:48:25 2015	(r288273)
+++ head/sys/vm/uma_core.c	Sat Sep 26 17:45:10 2015	(r288274)
@@ -1153,7 +1153,7 @@ noobj_alloc(uma_zone_t zone, vm_size_t b
 		 * exit.
 		 */
 		TAILQ_FOREACH_SAFE(p, &alloctail, listq, p_next) {
-			vm_page_unwire(p, PQ_INACTIVE);
+			vm_page_unwire(p, PQ_NONE);
 			vm_page_free(p); 
 		}
 		return (NULL);



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