From 529e15ed698954055b6f4fba1a1ff05cdf28b776 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 23 Aug 2003 20:29:29 +0000 Subject: [PATCH] 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(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 780607716fb..89d6febebb7 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; }