Page MenuHomeFreeBSD

Fix a page leak in the md(4) swap I/O path.
ClosedPublic

Authored by markj on Jan 3 2020, 5:41 PM.
Tags
None
Referenced Files
F133342222: D23024.diff
Sat, Oct 25, 1:39 AM
Unknown Object (File)
Mon, Oct 20, 9:56 PM
Unknown Object (File)
Mon, Oct 20, 9:56 PM
Unknown Object (File)
Mon, Oct 20, 9:56 PM
Unknown Object (File)
Mon, Oct 20, 11:14 AM
Unknown Object (File)
Sat, Oct 18, 1:58 PM
Unknown Object (File)
Sep 9 2025, 10:53 PM
Unknown Object (File)
Sep 4 2025, 6:33 PM
Subscribers

Details

Summary

In a last-minute change to D22885 I removed the vm_page_activate() call.
But this is of course needed to ensure that the pages end up in the page
queues in the first place.

Restore the pre-r356157 logic. Now, without the page lock, the
vm_page_active() check is racy, but this race is harmless.

Reported and tested by: pho

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28464
Build 26528: arc lint + arc unit