Page MenuHomeFreeBSD

Implement atomic state updates using the new vm_page_astate_t structure.
ClosedPublic

Authored by markj on Dec 10 2019, 7:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 11, 3:16 PM
Unknown Object (File)
Mon, Aug 10, 2:20 PM
Unknown Object (File)
Mon, Aug 10, 2:13 PM
Unknown Object (File)
Mon, Aug 10, 2:13 PM
Unknown Object (File)
Sun, Aug 9, 4:01 AM
Unknown Object (File)
Fri, Aug 7, 5:57 AM
Unknown Object (File)
Mon, Aug 3, 9:42 PM
Unknown Object (File)
Sun, Aug 2, 2:51 AM
Subscribers

Details

Summary

Introduce primitives vm_page_astate_load() and vm_page_astate_fcmpset()
to operate on the 32-bit per-page atomic state. Modify
vm_page_pqstate_fcmpset() to use them. No functional change intended.

Introduce PGA_QUEUE_OP_MASK, a subset of PGA_QUEUE_STATE_MASK that only
includes queue operation flags. This will be used in subsequent
patches.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks much nicer!

sys/vm/vm_page.h
759 ↗(On Diff #65465)

Shouldn't this be * NBBY?

markj marked an inline comment as done.

Fix the aflags shift definition, which happened to work regardless on
little-endian systems.

This revision is now accepted and ready to land.Dec 11 2019, 10:03 PM