Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102620159
D38964.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
969 B
Referenced Files
None
Subscribers
None
D38964.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
@@ -1047,6 +1047,8 @@
{
vm_object_t next_object;
+ VM_OBJECT_ASSERT_WLOCKED(fs->object);
+
/*
* The requested page does not exist at this object/
* offset. Remove the invalid page from the object,
@@ -1067,7 +1069,6 @@
* Move on to the next object. Lock the next object before
* unlocking the current one.
*/
- VM_OBJECT_ASSERT_WLOCKED(fs->object);
next_object = fs->object->backing_object;
if (next_object == NULL)
return (false);
@@ -1382,6 +1383,8 @@
enum fault_status res;
bool dead;
+ VM_OBJECT_ASSERT_WLOCKED(fs->object);
+
/*
* If the object is marked for imminent termination, we retry
* here, since the collapse pass has raced with us. Otherwise,
@@ -1416,7 +1419,6 @@
return (FAULT_SOFT);
}
}
- VM_OBJECT_ASSERT_WLOCKED(fs->object);
/*
* Page is not resident. If the pager might contain the page
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 10:07 PM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14648686
Default Alt Text
D38964.diff (969 B)
Attached To
Mode
D38964: vm: read-locked fault handling for backing objects ; simplest take
Attached
Detach File
Event Timeline
Log In to Comment