HomeFreeBSD

Stop clearing page flags in vm_page_pqbatch_submit().

Description

Stop clearing page flags in vm_page_pqbatch_submit().

All existing callers guarantee that the page does not have a
pre-existing dequeue pending. Thus, if the page is dequeued before
pqbatch_submit() acquires the page queue lock, we do not need to do
anything since vm_page_dequeue_complete() takes care of clearing all
page queue state flags for us.

With this change, vm_page_pqbatch_submit() has the nice property that it
does not directly modify any fields in the page structure.

Reviewed by: alc, kib
Tested by: pho (part of a larger change)
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21372

Details

Provenance
markjAuthored on Aug 23 2019, 7:53 PM
Parents
rG386eba08bd1b: Make vm_pqbatch_submit_page() externally visible.
Branches
Unknown
Tags
Unknown

Event Timeline