Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108606693
D35485.id106936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
D35485.id106936.diff
View Options
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -2122,7 +2122,6 @@
break;
}
}
- VM_OBJECT_WUNLOCK(dst_object);
/*
* Enter it in the pmap. If a wired, copy-on-write
@@ -2137,15 +2136,15 @@
* backing pages.
*/
if (vm_page_all_valid(dst_m)) {
+ VM_OBJECT_WUNLOCK(dst_object);
pmap_enter(dst_map->pmap, vaddr, dst_m, prot,
access | (upgrade ? PMAP_ENTER_WIRED : 0), 0);
+ VM_OBJECT_WLOCK(dst_object);
}
/*
* Mark it no longer busy, and put it on the active list.
*/
- VM_OBJECT_WLOCK(dst_object);
-
if (upgrade) {
if (src_m != dst_m) {
vm_page_unwire(src_m, PQ_INACTIVE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 8:21 PM (7 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16210638
Default Alt Text
D35485.id106936.diff (703 B)
Attached To
Mode
D35485: vm_fault: Avoid unnecessary object unlocking in vm_fault_copy_entry()
Attached
Detach File
Event Timeline
Log In to Comment