Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157491140
D4326.id10618.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D4326.id10618.diff
View Options
Index: sys/vm/vm_fault.c
===================================================================
--- sys/vm/vm_fault.c
+++ sys/vm/vm_fault.c
@@ -839,7 +839,7 @@
* get rid of the unnecessary page
*/
vm_page_lock(fs.first_m);
- vm_page_free(fs.first_m);
+ vm_page_remove(fs.first_m);
vm_page_unlock(fs.first_m);
/*
* grab the page and put it into the
@@ -848,9 +848,13 @@
*/
if (vm_page_rename(fs.m, fs.first_object,
fs.first_pindex)) {
+ VM_OBJECT_WUNLOCK(fs.first_object);
unlock_and_deallocate(&fs);
goto RetryFault;
}
+ vm_page_lock(fs.first_m);
+ vm_page_free(fs.first_m);
+ vm_page_unlock(fs.first_m);
#if VM_NRESERVLEVEL > 0
/*
* Rename the reservation.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 12:44 AM (14 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33436388
Default Alt Text
D4326.id10618.diff (757 B)
Attached To
Mode
D4326: vm_fault_hold: handle vm_page_rename failure
Attached
Detach File
Event Timeline
Log In to Comment