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
F140930786: D23024.id54425.diff
Mon, Dec 29, 6:58 PM
Unknown Object (File)
Sun, Dec 28, 2:14 AM
Unknown Object (File)
Sat, Dec 27, 5:20 PM
Unknown Object (File)
Thu, Dec 4, 12:30 AM
Unknown Object (File)
Nov 22 2025, 11:33 PM
Unknown Object (File)
Nov 22 2025, 11:33 PM
Unknown Object (File)
Nov 22 2025, 11:19 PM
Unknown Object (File)
Nov 22 2025, 11:18 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable