Page MenuHomeFreeBSD

i386: Avoid calling kmem_alloc_contig(M_NEVERFREED)
ClosedPublic

Authored by markj on Mon, Jul 14, 7:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 3, 5:13 AM
Unknown Object (File)
Mon, Jul 28, 6:36 PM
Unknown Object (File)
Mon, Jul 28, 4:38 PM
Unknown Object (File)
Mon, Jul 28, 3:45 PM
Unknown Object (File)
Mon, Jul 21, 11:10 AM
Unknown Object (File)
Sun, Jul 20, 5:34 PM
Unknown Object (File)
Sun, Jul 20, 4:31 PM
Unknown Object (File)
Tue, Jul 15, 12:53 PM
Subscribers

Details

Summary

vm_page_alloc_contig* don't handle VM_ALLOC_NOFREE. After commit
07297aee35f2 ("vm_page: update comments and KASSERT()s concerning page allocation"),
pmap_pdpt_allocf() triggers one of the added assertions, since pdptzone
is a NOFREE zone.

Simply clear the flag when allocating a slab. It is not worth trying to
implement support for the NOFREE allocator here.

Reported by: Jenkins

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable