Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Process concurrent page faults on individual uvm_ob...



details:   https://anonhg.NetBSD.org/src/rev/a9a8fa4bf946
branches:  trunk
changeset: 970392:a9a8fa4bf946
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Mar 22 18:45:28 2020 +0000

description:
Process concurrent page faults on individual uvm_objects / vm_amaps in
parallel, where the relevant pages are already in-core.  Proposed on
tech-kern.

Temporarily disabled on MP architectures with __HAVE_UNLOCKED_PMAP until
adjustments are made to their pmaps.

diffstat:

 sys/kern/vfs_vnode.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 01e1f264c9c4 -r a9a8fa4bf946 sys/kern/vfs_vnode.c
--- a/sys/kern/vfs_vnode.c      Sun Mar 22 18:32:41 2020 +0000
+++ b/sys/kern/vfs_vnode.c      Sun Mar 22 18:45:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_vnode.c,v 1.115 2020/03/22 16:43:57 ad Exp $       */
+/*     $NetBSD: vfs_vnode.c,v 1.116 2020/03/22 18:45:28 ad Exp $       */
 
 /*-
  * Copyright (c) 1997-2011, 2019, 2020 The NetBSD Foundation, Inc.
@@ -155,7 +155,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.115 2020/03/22 16:43:57 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.116 2020/03/22 18:45:28 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pax.h"
@@ -1676,6 +1676,7 @@
                cpu_count(CPU_COUNT_FILEPAGES, vp->v_uobj.uo_npages);
        }
        vp->v_iflag &= ~(VI_TEXT|VI_EXECMAP);
+       vp->v_iflag |= VI_DEADCHECK; /* for genfs_getpages() */
        mutex_exit(vp->v_interlock);
        rw_exit(vp->v_uobj.vmobjlock);
 



Home | Main Index | Thread Index | Old Index