Source-Changes-HG archive

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

[src/chs-ubc2]: src/sys/uvm add PGO_SYNCIO to the flags to pgo_fault() and pg...



details:   https://anonhg.NetBSD.org/src/rev/8c4dd4304f87
branches:  chs-ubc2
changeset: 471379:8c4dd4304f87
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 04 02:00:33 1999 +0000

description:
add PGO_SYNCIO to the flags to pgo_fault() and pgo_get() (unlocked).
this just makes things work out better in the handlers.

diffstat:

 sys/uvm/uvm_fault.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 1cd5bfcb1e07 -r 8c4dd4304f87 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Sun Jul 04 01:57:35 1999 +0000
+++ b/sys/uvm/uvm_fault.c       Sun Jul 04 02:00:33 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_fault.c,v 1.27.2.1.2.2 1999/06/21 01:47:20 thorpej Exp $   */
+/*     $NetBSD: uvm_fault.c,v 1.27.2.1.2.3 1999/07/04 02:00:33 chs Exp $       */
 
 /*
  *
@@ -883,7 +883,7 @@
                /* locked: maps(read), amap (if there), uobj */
                result = uobj->pgops->pgo_fault(&ufi, startva, pages, npages,
                                    centeridx, fault_type, access_type,
-                                   PGO_LOCKED);
+                                   PGO_LOCKED|PGO_SYNCIO);
 
                /* locked: nothing, pgo_fault has unlocked everything */
                simple_lock_assert(&uobj->vmobjlock, SLOCK_UNLOCKED);
@@ -1341,7 +1341,8 @@
                gotpages = 1;
                uoff = (ufi.orig_rvaddr - ufi.entry->start) + ufi.entry->offset;
                result = uobj->pgops->pgo_get(uobj, uoff, &uobjpage, &gotpages,
-                   0, access_type & MASK(ufi.entry), ufi.entry->advice, 0);
+                   0, access_type & MASK(ufi.entry), ufi.entry->advice,
+                   PGO_SYNCIO);
 
                /* locked: uobjpage(if result OK) */
                simple_lock_assert(&uobj->vmobjlock, SLOCK_UNLOCKED);



Home | Main Index | Thread Index | Old Index