Re: [PATCH 07/13] powerpc: Preemptible mmu_gather

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Monday, April 12, 2010 - 6:56 pm

On Fri, 2010-04-09 at 14:07 +1000, Nick Piggin wrote:

We must flush before the pte_lock is released. If not, we end up with
this funny situation:

	- PTE is read-only, hash contains a translation for it
	- PTE gets cleared & added to the batch, hash not flushed yet
	- PTE lock released, maybe even VMA fully removed
	- Other CPU takes a write fault, puts in a new PTE
	- Hash ends up with duplicates of the vaddr -> arch violation

Now we could get out of that one, I suppose, if we had some kind of way
to force flush any batch pertaining to a given mm before a new valid PTE
can be written, but that doesn't sound such a trivial thing to do.

Any better idea ?

Cheers,
Ben.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Thu Apr 8, 12:17 pm)
[PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Thu Apr 8, 12:17 pm)
Re: [PATCH 00/13] mm: preemptibility -v2, David Miller, (Thu Apr 8, 1:29 pm)
Re: [PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Thu Apr 8, 1:35 pm)
Re: [PATCH 00/13] mm: preemptibility -v2, David Miller, (Thu Apr 8, 6:00 pm)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Nick Piggin, (Thu Apr 8, 9:07 pm)
Re: [PATCH 00/13] mm: preemptibility -v2, Nick Piggin, (Thu Apr 8, 9:14 pm)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Fri Apr 9, 1:14 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Fri Apr 9, 1:35 am)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Nick Piggin, (Fri Apr 9, 1:46 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Nick Piggin, (Fri Apr 9, 1:50 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Martin Schwidefsky, (Fri Apr 9, 1:58 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Fri Apr 9, 1:58 am)
Re: [PATCH 00/13] mm: preemptibility -v2, David Howells, (Fri Apr 9, 2:03 am)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Fri Apr 9, 2:22 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Fri Apr 9, 2:22 am)
Re: [PATCH 00/13] mm: preemptibility -v2, Peter Zijlstra, (Fri Apr 9, 2:53 am)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Benjamin Herrenschmidt, (Mon Apr 12, 6:23 pm)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Benjamin Herrenschmidt, (Mon Apr 12, 6:56 pm)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Benjamin Herrenschmidt, (Mon Apr 12, 7:06 pm)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Tue Apr 13, 3:22 am)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Wed Apr 14, 6:34 am)
Re: [PATCH 07/13] powerpc: Preemptible mmu_gather, Peter Zijlstra, (Wed Apr 14, 6:51 am)