Re: [PATCH 3/3] slub: Add option to skip consistency checks
From: Christoph Lameter
Date: Tue Jan 26 2016 - 10:00:28 EST
On Mon, 25 Jan 2016, Laura Abbott wrote:
> SLUB debugging by default does checks to ensure consistency.
> These checks, while useful, are expensive for allocation speed.
> Features such as poisoning and tracing can stand alone without
> any checks. Add a slab flag to skip these checks.
I would suggest to rename the SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS
instead. I think the flag is already used that way in a couple of places.
Flags generally enable stuff. Disabling what is enabled by others is
something that we want to avoid for simplicities sake.