Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2017 18:07:46 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324126 - stable/11/sys/riscv/riscv
Message-ID:  <201709301807.v8UI7kpe074485@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Sep 30 18:07:46 2017
New Revision: 324126
URL: https://svnweb.freebsd.org/changeset/base/324126

Log:
  MFC r323785
    Sync with amd64/arm/arm64/i386/mips pmap change r288256:
  
    Exploit r288122 to address a cosmetic issue.  Since PV chunk pages 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
    this false impression by passing PQ_NONE.

Modified:
  stable/11/sys/riscv/riscv/pmap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/11/sys/riscv/riscv/pmap.c	Sat Sep 30 17:51:10 2017	(r324125)
+++ stable/11/sys/riscv/riscv/pmap.c	Sat Sep 30 18:07:46 2017	(r324126)
@@ -1589,7 +1589,7 @@ free_pv_chunk(struct pv_chunk *pc)
 #if 0 /* TODO: For minidump */
 	dump_drop_page(m->phys_addr);
 #endif
-	vm_page_unwire(m, PQ_INACTIVE);
+	vm_page_unwire(m, PQ_NONE);
 	vm_page_free(m);
 }
 



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