Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177866268
D23024.1795464793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
536 B
Referenced Files
None
Subscribers
None
D23024.1795464793.diff
View Options
Index: sys/dev/md/md.c
===================================================================
--- sys/dev/md/md.c
+++ 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
Mon, Nov 23, 8:13 PM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41939329
Default Alt Text
D23024.1795464793.diff (536 B)
Attached To
Mode
D23024: Fix a page leak in the md(4) swap I/O path.
Attached
Detach File
Event Timeline