|
@@ -2309,9 +2309,13 @@ void __kernel_map_pages(struct page *page, int numpages, int enable)
|
|
|
|
|
|
/*
|
|
/*
|
|
* We should perform an IPI and flush all tlbs,
|
|
* We should perform an IPI and flush all tlbs,
|
|
- * but that can deadlock->flush only current cpu:
|
|
|
|
|
|
+ * but that can deadlock->flush only current cpu.
|
|
|
|
+ * Preemption needs to be disabled around __flush_tlb_all() due to
|
|
|
|
+ * CR3 reload in __native_flush_tlb().
|
|
*/
|
|
*/
|
|
|
|
+ preempt_disable();
|
|
__flush_tlb_all();
|
|
__flush_tlb_all();
|
|
|
|
+ preempt_enable();
|
|
|
|
|
|
arch_flush_lazy_mmu_mode();
|
|
arch_flush_lazy_mmu_mode();
|
|
}
|
|
}
|