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)
Sun, Jul 19, 7:01 PM
Unknown Object (File)
Sat, Jul 18, 9:01 AM
Unknown Object (File)
Thu, Jul 2, 6:17 PM
Unknown Object (File)
Wed, Jul 1, 3:38 PM
Unknown Object (File)
Sat, Jun 27, 12:43 PM
Unknown Object (File)
Mon, Jun 22, 10:50 PM
Unknown Object (File)
Sun, Jun 21, 5:51 PM
Unknown Object (File)
Jun 12 2026, 12:09 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.