Page MenuHomeFreeBSD

Make vm_pqbatch_submit_page() externally visible.
ClosedPublic

Authored by markj on Aug 22 2019, 7:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 5:34 PM
Unknown Object (File)
Nov 28 2024, 6:32 AM
Unknown Object (File)
Nov 21 2024, 5:24 PM
Unknown Object (File)
Nov 5 2024, 12:09 PM
Unknown Object (File)
Oct 22 2024, 1:39 AM
Unknown Object (File)
Oct 18 2024, 2:23 AM
Unknown Object (File)
Sep 17 2024, 4:20 PM
Unknown Object (File)
Sep 4 2024, 7:08 PM
Subscribers

Details

Summary

I would like to use it in the page daemon. In particular, we might in
principle have code that sets PGA_REQUEUE or PGA_DEQUEUE without
creating a batch entry for the page. Upon encountering such a page, the
page daemon should create the batch entry. Today it does that
indirectly; for example, the laundry thread will call vm_page_requeue()
if the page has PGA_REQUEUE set. But vm_page_requeue() tests for and
sets PGA_REQUEUE, which is redundant in this case, and I would like
a way to create a batch entry for a page without modifying that page
at all, so as to handle the possibility that the page is concurrently
being freed.

For consistency in the vm_page.h namespace, rename it to
vm_page_pqbatch_submit(). Also for consistency, rename
vm_page_drain_pqbatch() to vm_page_pqbatch_drain().

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26019
Build 24565: arc lint + arc unit