aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2007-09-25 21:01:10 +0000
committerAlan Cox <alc@FreeBSD.org>2007-09-25 21:01:10 +0000
commitf3a2ed4bd9fa64164f824ee648c5a28aed616a16 (patch)
tree0a9357d27d35e97123196ab65cc193bb1aa98afa
parent2ba799df13f3ac4f243c0ba64074f7e20377030b (diff)
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)
Notes
svn path=/head/; revision=172322
-rw-r--r--sys/vm/vm_object.c3
1 files changed, 2 insertions, 1 deletions
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) {
/*