Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2015 03:38:58 +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: r289059 - head/sys/vm
Message-ID:  <201510090338.t993cwpX023247@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Fri Oct  9 03:38:58 2015
New Revision: 289059
URL: https://svnweb.freebsd.org/changeset/base/289059

Log:
  Exploit r288122 to avoid pointlessly enqueueing a page that is about to be
  freed.
  
  Submitted by:	kmacy
  Differential Revision:	https://reviews.freebsd.org/D1674

Modified:
  head/sys/vm/vm_glue.c

Modified: head/sys/vm/vm_glue.c
==============================================================================
--- head/sys/vm/vm_glue.c	Thu Oct  8 23:27:45 2015	(r289058)
+++ head/sys/vm/vm_glue.c	Fri Oct  9 03:38:58 2015	(r289059)
@@ -418,7 +418,7 @@ vm_thread_stack_dispose(vm_object_t ksob
 		if (m == NULL)
 			panic("vm_thread_dispose: kstack already missing?");
 		vm_page_lock(m);
-		vm_page_unwire(m, PQ_INACTIVE);
+		vm_page_unwire(m, PQ_NONE);
 		vm_page_free(m);
 		vm_page_unlock(m);
 	}



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