Skip to content

Commit 2f8d62e

Browse files
KAGA-KOKOSebastian Andrzej Siewior
authored andcommitted
mm: Enable SLUB for RT
Avoid the memory allocation in IRQ section Signed-off-by: Thomas Gleixner <[email protected]> [bigeasy: factor out everything except the kcalloc() workaorund ] Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
1 parent 7fd1304 commit 2f8d62e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mm/slub.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,6 +3679,11 @@ static void list_slab_objects(struct kmem_cache *s, struct page *page,
36793679
const char *text)
36803680
{
36813681
#ifdef CONFIG_SLUB_DEBUG
3682+
#ifdef CONFIG_PREEMPT_RT_BASE
3683+
/* XXX move out of irq-off section */
3684+
slab_err(s, page, text, s->name);
3685+
#else
3686+
36823687
void *addr = page_address(page);
36833688
void *p;
36843689
unsigned long *map = kcalloc(BITS_TO_LONGS(page->objects),
@@ -3700,6 +3705,7 @@ static void list_slab_objects(struct kmem_cache *s, struct page *page,
37003705
slab_unlock(page);
37013706
kfree(map);
37023707
#endif
3708+
#endif
37033709
}
37043710

37053711
/*

0 commit comments

Comments
 (0)