]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: add SLAB_CONSISTENCY_CHECKS to SLAB_NEVER_MERGE
authorVlastimil Babka <vbabka@suse.cz>
Fri, 23 Jan 2026 06:52:41 +0000 (07:52 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Tue, 27 Jan 2026 16:55:54 +0000 (17:55 +0100)
commitb26e52c523ea871ef1cae6e3955418cfffe2117f
treecc1d279893d0db400054d905b560cf5928e94caa
parentf8b4cd2dad097e4ea5aed3511f42b9eb771e7b19
slab: add SLAB_CONSISTENCY_CHECKS to SLAB_NEVER_MERGE

All the debug flags prevent merging, except SLAB_CONSISTENCY_CHECKS. This
is suboptimal because this flag (like any debug flags) prevents the
usage of any fastpaths, and thus affect performance of any aliased
cache. Also the objects from an aliased cache than the one specified for
debugging could also interfere with the debugging efforts.

Fix this by adding the whole SLAB_DEBUG_FLAGS collection to
SLAB_NEVER_MERGE instead of individual debug flags, so it now also
includes SLAB_CONSISTENCY_CHECKS.

Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slab_common.c