1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Unlock page lock instead of recursively locking it.

This commit is contained in:
Konstantin Belousov 2010-04-30 16:20:14 +00:00
parent c7a0df65b1
commit e20e8c1558
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207438

View File

@ -1284,19 +1284,19 @@ vm_fault_copy_entry(vm_map_t dst_map, vm_map_t src_map,
vm_page_lock_queues();
vm_page_unwire(src_m, 0);
vm_page_unlock_queues();
vm_page_lock(src_m);
vm_page_unlock(src_m);
vm_page_lock(dst_m);
vm_page_lock_queues();
vm_page_wire(dst_m);
vm_page_unlock_queues();
vm_page_lock(dst_m);
vm_page_unlock(dst_m);
} else {
vm_page_lock(dst_m);
vm_page_lock_queues();
vm_page_activate(dst_m);
vm_page_unlock_queues();
vm_page_lock(dst_m);
vm_page_unlock(dst_m);
}
vm_page_wakeup(dst_m);
}