diff options
Diffstat (limited to 'features/rt/mm-slub-Don-t-resize-the-location-tracking-cache-on-.patch')
-rw-r--r-- | features/rt/mm-slub-Don-t-resize-the-location-tracking-cache-on-.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/features/rt/mm-slub-Don-t-resize-the-location-tracking-cache-on-.patch b/features/rt/mm-slub-Don-t-resize-the-location-tracking-cache-on-.patch new file mode 100644 index 00000000..601403f6 --- /dev/null +++ b/features/rt/mm-slub-Don-t-resize-the-location-tracking-cache-on-.patch @@ -0,0 +1,35 @@ +From cc489539ca4480363e75c1f71bf9e47f835fb2ef Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +Date: Fri, 26 Feb 2021 17:26:04 +0100 +Subject: [PATCH 109/191] mm: slub: Don't resize the location tracking cache on + PREEMPT_RT + +The location tracking cache has a size of a page and is resized if its +current size is too small. +This allocation happens with disabled interrupts and can't happen on +PREEMPT_RT. +Should one page be too small, then we have to allocate more at the +beginning. The only downside is that less callers will be visible. + +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +--- + mm/slub.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/mm/slub.c b/mm/slub.c +index ec608c1d5fdb..26cf2872a7ff 100644 +--- a/mm/slub.c ++++ b/mm/slub.c +@@ -4819,6 +4819,9 @@ static int alloc_loc_track(struct loc_track *t, unsigned long max, gfp_t flags) + struct location *l; + int order; + ++ if (IS_ENABLED(CONFIG_PREEMPT_RT) && flags == GFP_ATOMIC) ++ return 0; ++ + order = get_order(sizeof(struct location) * max); + + l = (void *)__get_free_pages(flags, order); +-- +2.19.1 + |