HomeFreeBSD

Update the free page count when blacklisting pages.

Description

Update the free page count when blacklisting pages.

Otherwise the free page count will not accurately reflect the physical
page allocator's state. On 11 this can trigger panics in
vm_page_alloc() since the allocator state and free page count are
updated atomically and we expect them to stay in sync. On 12 the
bug would manifest as threads looping in vm_page_alloc().

PR: 231296
Reported by: mav, wollman, Rainer Duffner, Josh Gitlin
Reviewed by: alc, kib, mav
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18374

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D18374: Adjust v_freecnt when blacklisting pages.
Parents
rS341246: trim.8: fix contents after rename from trim.1
Branches
Unknown
Tags
Unknown