Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Add missing call to uvm_pgflcache_resume().



details:   https://anonhg.NetBSD.org/src/rev/765ee3929a21
branches:  trunk
changeset: 466637:765ee3929a21
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Dec 28 16:07:41 2019 +0000

description:
Add missing call to uvm_pgflcache_resume().

diffstat:

 sys/uvm/uvm_page.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 852cc54b2ffc -r 765ee3929a21 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Sat Dec 28 15:39:52 2019 +0000
+++ b/sys/uvm/uvm_page.c        Sat Dec 28 16:07:41 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.215 2019/12/28 08:49:41 martin Exp $    */
+/*     $NetBSD: uvm_page.c,v 1.216 2019/12/28 16:07:41 ad Exp $        */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.215 2019/12/28 08:49:41 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.216 2019/12/28 16:07:41 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvm.h"
@@ -778,6 +778,7 @@
        if (newncolors <= uvmexp.ncolors &&
            newnbuckets == uvm.bucketcount) {
                uvm_pgfl_unlock();
+               uvm_pgflcache_resume();
                kmem_free(bucketmem, bucketmemsize);
                return;
        }
@@ -838,14 +839,14 @@
        oldbucketmem = recolored_pages_mem;
        recolored_pages_memsize = bucketmemsize;
        recolored_pages_mem = bucketmem;
+
        uvm_pgfl_unlock();
+       uvm_pgflcache_resume();
 
        if (oldbucketmemsize) {
                kmem_free(oldbucketmem, oldbucketmemsize);
        }
 
-       uvm_pgflcache_resume();
-
        /*
         * this calls uvm_km_alloc() which may want to hold
         * uvm_freelist_lock.



Home | Main Index | Thread Index | Old Index