diff options
author | Suren Baghdasaryan <surenb@google.com> | 2024-02-10 16:19:58 -0800 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2024-03-21 00:01:43 +0000 |
commit | 646cd36ea584cb73c3dbd231428a06eeac9a5805 (patch) | |
tree | 1776035e72815d6b8a86722c09fa14d15a8b92b9 | |
parent | 752efe69b2fcae5f76963200cc2ae57140535767 (diff) |
mm: percpu: increase PERCPU_MODULE_RESERVE to accommodate allocation tags
As each allocation tag generates a per-cpu variable, more space is required
to store them. Increase PERCPU_MODULE_RESERVE to provide enough area. A
better long-term solution would be to allocate this memory dynamically.
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
-rw-r--r-- | include/linux/percpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 8c677f185901..62b5eb45bd89 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -14,7 +14,11 @@ /* enough to cover all DEFINE_PER_CPUs in modules */ #ifdef CONFIG_MODULES +#ifdef CONFIG_MEM_ALLOC_PROFILING +#define PERCPU_MODULE_RESERVE (8 << 12) +#else #define PERCPU_MODULE_RESERVE (8 << 10) +#endif #else #define PERCPU_MODULE_RESERVE 0 #endif |