Skip to content

SLUB: Cleanups V4

Christoph Lameter linux-mm lkml 1 version Applied

Status from this message: I've applied these patches and queued them for -next. Thanks guys!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6Slub: Force no inlining of debug functionsmm/slub.c+3 -30 replies
2/6slub: remove dynamic dma slab allocationmm/slub.c+39 -1110 replies
3/6slub: Remove static kmem_cache_cpu array for bootmm/slub.c+4 -130 replies
4/6slub: Dynamically size kmalloc cache allocationsinclude/linux/slub_def.h mm/slub.c+140 -580 replies
5/6slub: Extract hooks for memory checkers from hotpathsmm/slub.c+38 -110 replies
6/6slub: Move gfpflag masking out of the hotpathmm/slub.c+3 -20 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid Rientjes
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [S+Q Cleanup4 0/6] SLUB: Cleanups V4

V1->V2: Fixes as discussed with David.
V2->V3: More deeper fixes. Return pointer to kmem_cache from create_kmalloc_cache. V3->V6: Some missing final touches

These are just the 6 remaining cleanup patches (after the 2.6.36 merge got the other in) in preparation for the Unified patches.

I think it may be best to first try to merge these and make sure that they are fine before we go step by step through the unification patches. I hope they can go into -next.

Patch 1

Uninline debug functions in hot paths. There is no point of the compiler folding them in because they are typically unused.

Patch 2

Remove dynamic creation of DMA caches and create them statically (will be turned dynamic by patch 4 but will then always be preallocated on boot and not from the hotpath)

Patch 3

Remove static allocation of kmem_cache_cpu array and rely on the percpu allocator to allocate memory for the array on bootup.

Patch 4

Remove static allocation of kmem_cache structure for kmalloc and friends.

Patch 5

Extract hooks for memory checkers.

Patch 6

Move gfpflag masking out of the allocator hotpath

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>