From 6198f092764f579108ce0df2c8cb26595cbe4115 Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 25 Jul 2021 21:35:46 +0200
Subject: [PATCH 095/183] mm/memcontrol: Disable on PREEMPT_RT

559271146efc ("mm/memcg: optimize user context object stock access") is a
classic example of optimizing for the cpu local BKL serialization without a
clear protection scope.

Disable MEMCG on RT for now.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 75095f406a50..511ebb4e5ff6 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -947,6 +947,7 @@ config PAGE_COUNTER
 
 config MEMCG
 	bool "Memory controller"
+	depends on !PREEMPT_RT
 	select PAGE_COUNTER
 	select EVENTFD
 	help
-- 
2.47.1

