From f3a2ed4bd9fa64164f824ee648c5a28aed616a16 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 25 Sep 2007 21:01:10 +0000 Subject: Correct an error in the previous revision, specifically, vm_object_madvise() should request that the reactivated, cached page not be busied. Reported by: Rink Springer Approved by: re (kensmith) --- sys/vm/vm_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 0d2d61c49e92..bf380fa39105 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -1105,7 +1105,8 @@ shadowlookup: /* * If the page is cached, reactivate it. */ - m = vm_page_alloc(tobject, tpindex, VM_ALLOC_IFCACHED); + m = vm_page_alloc(tobject, tpindex, VM_ALLOC_IFCACHED | + VM_ALLOC_NOBUSY); } if (m == NULL) { /* -- cgit v1.3