HomeFreeBSD

Cache the next queue element when traversing a page queue.

Description

Cache the next queue element when traversing a page queue.

When QUEUE_MACRO_DEBUG_TRASH is configured, removing a queue element
invalidates its queue linkage pointers. vm_pageout_collect_batch()
was relying on these pointers remaining valid after a removal, so
modify it to fetch the next queued page before dequeuing the current
page.

Submitted by: Don Morris <dgmorris@earthlink.net>
Reviewed by: cem, vangyzen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D20842

Details

Provenance
markjAuthored on Jul 3 2019, 6:46 PM
Parents
rG55c94d640fdd: bhyve/audio: don't leak resources on failed initialization.
Branches
Unknown
Tags
Unknown

Event Timeline