hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/mm/mmu_context.c
....@@ -25,6 +25,7 @@
2525 struct task_struct *tsk = current;
2626
2727 task_lock(tsk);
28
+ preempt_disable_rt();
2829 active_mm = tsk->active_mm;
2930 if (active_mm != mm) {
3031 mmgrab(mm);
....@@ -32,6 +33,7 @@
3233 }
3334 tsk->mm = mm;
3435 switch_mm(active_mm, mm, tsk);
36
+ preempt_enable_rt();
3537 task_unlock(tsk);
3638 #ifdef finish_arch_post_lock_switch
3739 finish_arch_post_lock_switch();