mm/memcontrol: Replace the PREEMPT_RT conditionals
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Aug 2022 16:41:28 +0000 (18:41 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Sep 2022 12:35:08 +0000 (14:35 +0200)
commite575d401583273a7ac5dfb27520e41c821e81816
treefb16171bc6e879d5986c9b9eb634508dc4843cb4
parenta738e9bad6030d4fd33bfd7db3399a250b7e94d8
mm/memcontrol: Replace the PREEMPT_RT conditionals

Use VM_WARN_ON_IRQS_ENABLED() and preempt_disable/enable_nested() to
replace the CONFIG_PREEMPT_RT #ifdeffery.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Link: https://lore.kernel.org/r/20220825164131.402717-6-bigeasy@linutronix.de
mm/memcontrol.c