Re: [PATCH] ppc64: Fix possible race with set_pte on a present PTE

David S. Miller
2004-05-25T17:54:42Z

On Tue, 25 May 2004 10:49:21 -0700 (PDT)
Linus Torvalds <torvalds@osdl.org> wrote:

> So what I can tell, the fix is really something like this (this does both
> x86 and ppc64 just to show how two different approaches would handle it,
> but I have literally _tested_ neither).
>
> What do people think?

So on sparc32 sun4m we'd implement ptep_update_dirty_accessed() with
some kind of loop using the swap instruction? That's in fact what
I've always wanted, someway to easily integrate the usage of such
a loop so that we could handle this problem on such systems.

Keith?