Page MenuHomeFreeBSD

vm: Move the "vm_wait in early boot" assertion to the proper place
ClosedPublic

Authored by markj on Apr 14 2022, 1:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 5:53 PM
Unknown Object (File)
Jan 14 2024, 8:35 AM
Unknown Object (File)
Dec 20 2023, 7:15 AM
Unknown Object (File)
Jul 5 2023, 6:17 AM
Unknown Object (File)
Jul 5 2023, 6:14 AM
Unknown Object (File)
Jul 5 2023, 6:12 AM
Unknown Object (File)
Jul 2 2023, 2:36 PM
Unknown Object (File)
May 28 2023, 12:44 AM
Subscribers

Details

Summary

The assertion was added in commit 1771e987ca6a. After that, vm_wait()
and friends were refactored such that the actual sleep happens
elsewhere. Now the assertion condition is not checked when
vm_wait_doms() is called directly, and it is checked even if we are not
going to sleep (because vm_page_count_min_set(wdoms) is false).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45158
Build 42046: arc lint + arc unit

Event Timeline

markj requested review of this revision.Apr 14 2022, 1:21 PM
This revision is now accepted and ready to land.Apr 14 2022, 2:29 PM
alc added inline comments.
sys/vm/vm_page.c
3243

As an aside, this variable seems pointless. Each of the 3 cases could end in a return statement.