Bug #2320 » forklock-fix1.patch
sys/vm/vm_fault.c | ||
---|---|---|
* Allocate a page in the destination object
|
||
*/
|
||
do {
|
||
vm_object_lock(dst_object);
|
||
dst_m = vm_page_alloc(dst_object,
|
||
OFF_TO_IDX(dst_offset),
|
||
VM_ALLOC_NORMAL);
|
||
vm_object_unlock(dst_object);
|
||
if (dst_m == NULL) {
|
||
vm_wait(0);
|
||
}
|
||
... | ... | |
* (Because the source is wired down, the page will be in
|
||
* memory.)
|
||
*/
|
||
vm_object_lock(src_object);
|
||
src_m = vm_page_lookup(src_object,
|
||
OFF_TO_IDX(dst_offset + src_offset));
|
||
vm_object_unlock(src_object);
|
||
if (src_m == NULL)
|
||
panic("vm_fault_copy_wired: page missing");
|
||
- « Previous
- 1
- 2
- Next »