blob: f8e33074dab575b2f57b370e9613f76984393820 [file] [log] [blame]
From: Thomas Gleixner <tglx@linutronix.de>
Date: Mon, 12 Aug 2013 09:16:09 +0200
Subject: mm: disable slab on rt
---
init/Kconfig | 1 +
mm/slab.h | 4 ++++
2 files changed, 5 insertions(+)
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1534,6 +1534,7 @@ choice
config SLAB
bool "SLAB"
+ depends on !PREEMPT_RT_FULL
help
The regular slab allocator that is established and known to work
well in all environments. It organizes cache hot objects in
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -247,7 +247,11 @@ static inline struct kmem_cache *cache_f
* The slab lists for all objects.
*/
struct kmem_cache_node {
+#ifdef CONFIG_SLAB
spinlock_t list_lock;
+#else
+ raw_spinlock_t list_lock;
+#endif
#ifdef CONFIG_SLAB
struct list_head slabs_partial; /* partial list first, better asm code */