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

Linus Torvalds
2004-05-25T21:54:20Z

On Wed, 26 May 2004, Benjamin Herrenschmidt wrote:
>
> Well, just setting one of those 2 bits doesn't require a hash table
> invalidate as long as nothing else changes.

Ok. And nothing ever writes to the SW page tables outside the page table
lock, right? So on ppc64, we could just do

#define ptep_update_dirty_accessed(ptep, entry, dirty) \
*(ptep) = (entry)

and be done with it. No?

I'm not going to do it without a big ack from you.

Linus