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)
This commit is contained in:
Alan Cox 2007-09-25 21:01:10 +00:00
parent 2ba799df13
commit f3a2ed4bd9

View File

@ -1105,7 +1105,8 @@ vm_object_madvise(vm_object_t object, vm_pindex_t pindex, int count, int advise)
/*
* 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) {
/*