HomeFreeBSD

uma_zalloc: assert M_NOWAIT ^ M_WAITOK

Description

uma_zalloc: assert M_NOWAIT ^ M_WAITOK

The uma_zalloc functions expect exactly one of [M_NOWAIT, M_WAITOK].
If neither or both are passed, print an error and a stack dump.
Only do this ten times, to prevent livelock. In the future, after
this exposes enough bad callers, this will be changed to a KASSERT().

Reviewed by: rstone, markj
MFC after: 1 month
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D34452

Details

Provenance
vangyzenAuthored on Mar 4 2022, 11:23 AM
Reviewer
rstone
Differential Revision
D34452: uma_zalloc: assert M_NOWAIT ^ M_WAITOK
Parents
rG863070bbf602: ksiginfo_alloc: pass M_WAITOK or M_NOWAIT to uma_zalloc
Branches
Unknown
Tags
Unknown