From 5b4e7610191dcd9258d5403f43e1cf056c43e37d Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 23 Aug 2003 20:29:29 +0000 Subject: Held pages, just like wired pages, should not be added to the cache queues. Submitted by: tegge --- sys/vm/vm_page.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 7806077..89d6feb 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1341,7 +1341,8 @@ vm_page_cache(vm_page_t m) int s; mtx_assert(&vm_page_queue_mtx, MA_OWNED); - if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || m->wire_count) { + if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || + m->hold_count || m->wire_count) { printf("vm_page_cache: attempting to cache busy page\n"); return; } -- cgit v1.1