Sebastian Andrzej Siewior 35314d4a2d mm/mglru: Move lru_gen_add_mm() out of IRQ-off region
lru_gen_add_mm() has been added within an IRQ-off region in the commit
mentioned below.  The other invocations of lru_gen_add_mm() are not within
an IRQ-off region.

The invocation within IRQ-off region is problematic on PREEMPT_RT because
the function is using a spin_lock_t which must not be used within
IRQ-disabled regions.

The other invocations of lru_gen_add_mm() occur while
task_struct::alloc_lock is acquired.  Move lru_gen_add_mm() after
interrupts are enabled and before task_unlock().

Link: https://lkml.kernel.org/r/20221026134830.711887-1-bigeasy@linutronix.de
Fixes: bd74fdaea1460 ("mm: multi-gen LRU: support page table walks")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Yu Zhao <yuzhao@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Eric W . Biederman" <ebiederm@xmission.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Change-Id: I63ef837e43e727fd9223ad0e30170465b826a4bb
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2025-02-08 21:18:27 -03:00
..
2023-08-23 14:54:21 +00:00
2024-12-12 00:01:58 -03:00
2024-12-03 01:45:18 -03:00
2024-12-31 01:58:29 -03:00
2023-09-30 11:44:35 +00:00
2024-12-13 00:13:33 -03:00
2023-09-30 11:44:35 +00:00
2024-11-17 13:03:44 -03:00
2024-12-12 00:01:58 -03:00
2024-12-03 01:45:18 -03:00
2024-12-03 01:45:18 -03:00
2023-01-18 09:32:42 +01:00
2024-12-03 01:45:18 -03:00
2021-12-14 10:16:55 +01:00
2024-12-03 01:45:18 -03:00
2022-02-23 12:10:45 +01:00