summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-06-16 23:54:59 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-06-16 23:54:59 +0000
commita7fde65d2a4b3c80a105c722fceb4aead6a7b6e6 (patch)
treea39dde4a2414a0b0ee304bbb7a7763fb58873b56 /sys/uvm/uvm.h
parent42caf8629b478d48a8120571cf83377282e2c536 (diff)
date based reversion of uvm to the 4th May.
We still have no idea why this stops the crashes. but it does. a machine forced to 64mb of ram cycled 10GB through swap with this diff and is still running as I type this. Other tests by ariane@ and thib@ also seem to show that it's alright. ok deraadt@, thib@, ariane@
Diffstat (limited to 'sys/uvm/uvm.h')
-rw-r--r--sys/uvm/uvm.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h
index 57ae90fc894..0e4966bec1a 100644
--- a/sys/uvm/uvm.h
+++ b/sys/uvm/uvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm.h,v 1.36 2009/06/16 16:42:41 ariane Exp $ */
+/* $OpenBSD: uvm.h,v 1.37 2009/06/16 23:54:57 oga Exp $ */
/* $NetBSD: uvm.h,v 1.24 2000/11/27 08:40:02 chs Exp $ */
/*
@@ -87,11 +87,13 @@ struct uvm {
boolean_t page_idle_zero; /* TRUE if we should try to zero
pages in the idle loop */
- /* page daemon's pid, we sleep on the pointer to this. */
- struct proc *pagedaemon_proc;
+ /* page daemon trigger */
+ int pagedaemon; /* daemon sleeps on this */
+ struct proc *pagedaemon_proc; /* daemon's pid */
- /* aiodone daemon's pid, we sleep on the pointer to this. */
- struct proc *aiodoned_proc;
+ /* aiodone daemon trigger */
+ int aiodoned; /* daemon sleeps on this */
+ struct proc *aiodoned_proc; /* daemon's pid */
struct mutex aiodoned_lock;
/* page hash */