Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/swap: use local lock in deactivate_page()
get_cpu_var() calls preempt_disable(), while on RT kernel, pagevec_lru_move_fn() will call spinlock and might schedule the context out and hence the schedule bug occurred, issue is found on 5.4.70-rt40 and reproducable on 5.4.74-rt41. 32154a0abcc ("mm: Revert the DEFINE_PER_CPU_PAGEVEC implementation") reverted the lock/unlock_swap_pvec function, however, deactivate_page() part was missed at that time as it's newly added in v5.4. Link: https://lore.kernel.org/r/[email protected] Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Zanxiong Qiu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Alexander Winkowski <[email protected]>
- Loading branch information