Skip to contentSkip to conversation

Make page fault preempt-safe

PATCH In review Deepak Saxena 2 participants 2 messages Mar 28, 2007 – Mar 29, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make page fault preempt-safe

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

arch/mips/mm/fault.c +1 -1
index 6f90e7e..a2466c8 100644
@@ -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))
Signature · 4 lines
Deepak Saxena - [email protected] - 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
#1 lore raw
Quoted 2 lines · Deepak Saxena

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

There were two more instances which also needed to be fixed, so I just did that.

Ralf