Message ID | 20220808125602.97747-10-goliath@infraroot.at |
---|---|
State | New |
Headers | show |
Series | Backport MEMCG changes from v5.17 | expand |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 70c374761bb8..74025c2e2bcc 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -773,7 +773,7 @@ void __mod_memcg_lruvec_state(struct lruvec *lruvec, enum node_stat_item idx, * interrupt context while other caller need to have disabled interrupt. */ __memcg_stats_lock(); - if (IS_ENABLED(CONFIG_DEBUG_VM)) { + if (IS_ENABLED(CONFIG_DEBUG_VM) && !IS_ENABLED(CONFIG_PREEMPT_RT)) { switch (idx) { case NR_ANON_MAPPED: case NR_FILE_MAPPED: