| Subject: mm: Enable SLUB for RT |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Thu, 25 Oct 2012 10:32:35 +0100 |
| |
| Avoid the memory allocation in IRQ section |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| [bigeasy: factor out everything except the kcalloc() workaorund ] |
| Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> |
| --- |
| mm/slub.c | 6 ++++++ |
| 1 file changed, 6 insertions(+) |
| |
| --- a/mm/slub.c |
| +++ b/mm/slub.c |
| @@ -3766,6 +3766,11 @@ static void list_slab_objects(struct kme |
| const char *text) |
| { |
| #ifdef CONFIG_SLUB_DEBUG |
| +#ifdef CONFIG_PREEMPT_RT |
| + /* XXX move out of irq-off section */ |
| + slab_err(s, page, text, s->name); |
| +#else |
| + |
| void *addr = page_address(page); |
| void *p; |
| unsigned long *map; |
| @@ -3785,6 +3790,7 @@ static void list_slab_objects(struct kme |
| |
| slab_unlock(page); |
| #endif |
| +#endif |
| } |
| |
| /* |