Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175841506
D23024.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
551 B
Referenced Files
None
Subscribers
None
D23024.diff
View Options
Index: head/sys/dev/md/md.c
===================================================================
--- head/sys/dev/md/md.c
+++ head/sys/dev/md/md.c
@@ -1142,7 +1142,16 @@
}
if (m != NULL) {
vm_page_xunbusy(m);
- vm_page_reference(m);
+
+ /*
+ * The page may be deactivated prior to setting
+ * PGA_REFERENCED, but in this case it will be
+ * reactivated by the page daemon.
+ */
+ if (vm_page_active(m))
+ vm_page_reference(m);
+ else
+ vm_page_activate(m);
}
/* Actions on further pages start at offset 0 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 14, 7:42 PM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40741281
Default Alt Text
D23024.diff (551 B)
Attached To
Mode
D23024: Fix a page leak in the md(4) swap I/O path.
Attached
Detach File
Event Timeline
Log In to Comment