[PATCH] Make page fault preempt-safe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Like the udelay() patch, this makes vmalloc_fault() preempt-safe under 
DEBUG_PREEMPT.

Signed-off-by: Deepak Saxena <dsaxena@xxxxxxxxxx>

diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index 6f90e7e..a2466c8 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -228,7 +228,7 @@ vmalloc_fault:
 		pmd_t *pmd, *pmd_k;
 		pte_t *pte_k;
 
-		pgd = (pgd_t *) pgd_current[smp_processor_id()] + offset;
+		pgd = (pgd_t *) pgd_current[raw_smp_processor_id()] + offset;
 		pgd_k = init_mm.pgd + offset;
 
 		if (!pgd_present(*pgd_k))

-- 
Deepak Saxena - dsaxena@xxxxxxxxxxx - http://www.plexity.net

In the end, they will not say, "those were dark times,"  they will ask
"why were their poets silent?" - Bertolt Brecht


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux