Module Name: src
Committed By: ad
Date: Sun Mar 22 18:45:28 UTC 2020
Modified Files:
src/sys/kern: vfs_vnode.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/kern/vfs_vnode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_vnode.c
diff -u src/sys/kern/vfs_vnode.c:1.115 src/sys/kern/vfs_vnode.c:1.116
--- src/sys/kern/vfs_vnode.c:1.115 Sun Mar 22 16:43:57 2020
+++ src/sys/kern/vfs_vnode.c Sun Mar 22 18:45:28 2020
@@ -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 @@ vcache_reclaim(vnode_t *vp)
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);