Page MenuHomeFreeBSD

vm_page_unswappable: remove wrong assertion
ClosedPublic

Authored by vangyzen on Nov 9 2022, 8:19 PM.
Tags
None
Referenced Files
F154295870: D37320.id112817.diff
Mon, Apr 27, 4:24 PM
Unknown Object (File)
Mon, Apr 20, 7:54 AM
Unknown Object (File)
Sun, Apr 19, 8:52 AM
Unknown Object (File)
Tue, Apr 14, 4:14 AM
Unknown Object (File)
Sat, Apr 11, 9:16 PM
Unknown Object (File)
Tue, Apr 7, 7:30 AM
Unknown Object (File)
Mar 23 2026, 2:05 AM
Unknown Object (File)
Jan 10 2026, 3:47 PM
Subscribers

Details

Summary

markj says:

...the assertion is incorrect and should simply be removed.
It has been racy since we removed the use of the page hash
lock to synchronize wiring of pages.

PR: 267621

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sys/vm/vm_page.c
4203–4204

ASSERT_LOCKED is sufficient. The intent is that nothing should be concurrently freeing the page; a read lock on the object suffices for that.

This revision is now accepted and ready to land.Nov 9 2022, 8:21 PM
This revision was automatically updated to reflect the committed changes.