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

From: David S. Miller
Date: Tue May 25 2004 - 12:59:20 EST


On Tue, 25 May 2004 10:49:21 -0700 (PDT)
Linus Torvalds <torvalds@xxxxxxxx> 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?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/