Hold the page queues lock when calling pmap_protect(); it updates fields
of the vm_page structure. Nearby, remove an unnecessary semicolon and return statement. Approved by: re (blanket)
This commit is contained in:
parent
1efbdbe23b
commit
38857e7f73
@ -592,17 +592,19 @@ vm_pageout_map_deactivate_pages(map, desired)
|
||||
vm_pageout_object_deactivate_pages(map, obj, desired, 0);
|
||||
}
|
||||
tmpe = tmpe->next;
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove all mappings if a process is swapped out, this will free page
|
||||
* table pages.
|
||||
*/
|
||||
if (desired == 0 && nothingwired)
|
||||
if (desired == 0 && nothingwired) {
|
||||
vm_page_lock_queues();
|
||||
pmap_remove(vm_map_pmap(map), vm_map_min(map),
|
||||
vm_map_max(map));
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
vm_map_unlock(map);
|
||||
return;
|
||||
}
|
||||
#endif /* !defined(NO_SWAPPING) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user