diff options
author | Baoquan He <[email protected]> | 2022-10-24 16:14:35 +0800 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2022-11-21 10:19:46 +0100 |
commit | a0dc161ae77377ae770b5626bce9b72cff5d9ed6 (patch) | |
tree | b91141ccb0515b01b8190fd829ea7cfe9d86f093 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | e8753e416c7ec39812cf92608aa95640caca70fa (diff) |
mm/slub, percpu: correct the calculation of early percpu allocation size
SLUB allocator relies on percpu allocator to initialize its ->cpu_slab
during early boot. For that, the dynamic chunk of percpu which serves
the early allocation need be large enough to satisfy the kmalloc
creation.
However, the current BUILD_BUG_ON() in alloc_kmem_cache_cpus() doesn't
consider the kmalloc array with NR_KMALLOC_TYPES length. Fix that
with correct calculation.
Signed-off-by: Baoquan He <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Hyeonggon Yoo <[email protected]>
Acked-by: Hyeonggon Yoo <[email protected]>
Acked-by: Dennis Zhou <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions