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
F110432899: D23024.diff
Tue, Feb 18, 9:46 AM
Unknown Object (File)
Sun, Jan 26, 11:14 PM
Unknown Object (File)
Jan 18 2025, 9:04 PM
Unknown Object (File)
Jan 9 2025, 11:36 AM
Unknown Object (File)
Jan 1 2025, 12:26 AM
Unknown Object (File)
Dec 31 2024, 12:11 AM
Unknown Object (File)
Dec 29 2024, 11:57 PM
Unknown Object (File)
Dec 28 2024, 11:44 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