summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2002-02-19 23:19:30 +0000
committertegge <tegge@FreeBSD.org>2002-02-19 23:19:30 +0000
commit5f4060fe3b8fa452dbd71d3403ece380470dae76 (patch)
tree99edeec5e5d906e1fc6a786d33ae94e0a71f13df /sys/vm/vm_page.h
parent872134cfe5d102e39b3dbc8363c48462882de702 (diff)
downloadFreeBSD-src-5f4060fe3b8fa452dbd71d3403ece380470dae76.zip
FreeBSD-src-5f4060fe3b8fa452dbd71d3403ece380470dae76.tar.gz
Add a page queue, PQ_HOLD, that temporarily owns pages with nonzero hold
count that would otherwise be on one of the free queues. This eliminates a panic when broken programs unmap memory that still has pending IO from raw devices. Reviewed by: dillon, alc
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index a2e67df..3610ae0 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -215,7 +215,8 @@ struct vm_page {
#define PQ_INACTIVE (1 + 1*PQ_L2_SIZE)
#define PQ_ACTIVE (2 + 1*PQ_L2_SIZE)
#define PQ_CACHE (3 + 1*PQ_L2_SIZE)
-#define PQ_COUNT (3 + 2*PQ_L2_SIZE)
+#define PQ_HOLD (3 + 2*PQ_L2_SIZE)
+#define PQ_COUNT (4 + 2*PQ_L2_SIZE)
#else
#define PQ_NONE PQ_COUNT
#define PQ_FREE 0
OpenPOWER on IntegriCloud