From 5f4060fe3b8fa452dbd71d3403ece380470dae76 Mon Sep 17 00:00:00 2001 From: tegge Date: Tue, 19 Feb 2002 23:19:30 +0000 Subject: 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 --- sys/vm/vm_page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/vm/vm_page.h') 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 -- cgit v1.1