Page MenuHomeFreeBSD

vm_page_unswappable: remove wrong assertion
ClosedPublic

Authored by vangyzen on Nov 9 2022, 8:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 9:44 AM
Unknown Object (File)
Sun, Apr 28, 6:09 PM
Unknown Object (File)
Tue, Apr 23, 12:25 AM
Unknown Object (File)
Sat, Apr 20, 9:26 PM
Unknown Object (File)
Sat, Apr 20, 3:27 PM
Unknown Object (File)
Apr 10 2024, 7:01 AM
Unknown Object (File)
Jan 10 2024, 2:15 AM
Unknown Object (File)
Dec 12 2023, 9:41 AM
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.