linux/debian/patches/features/all/rt/mm-disable-slab-on-rt.patch

33 lines
1022 B
Diff

Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.4-rt1.tar.xz
---
init/Kconfig | 1 +
mm/slab.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Index: linux-stable/init/Kconfig
===================================================================
--- linux-stable.orig/init/Kconfig
+++ linux-stable/init/Kconfig
@@ -1535,6 +1535,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
Index: linux-stable/mm/slab.h
===================================================================
--- linux-stable.orig/mm/slab.h
+++ linux-stable/mm/slab.h
@@ -245,7 +245,7 @@ static inline struct kmem_cache *cache_f
* The slab lists for all objects.
*/
struct kmem_cache_node {
- spinlock_t list_lock;
+ raw_spinlock_t list_lock;
#ifdef CONFIG_SLAB
struct list_head slabs_partial; /* partial list first, better asm code */