Re: [RFC] pte equality tests

Jeff Dike (jdike@karaya.com)
Fri, 31 Dec 1999 21:59:16 -0500


> Your analysis is correct (it can/does happen), however I don't think
> it happens often enough to worry about it.

OK.

> BTW, you could implement the more accurate tests with existing
> primitives:

> if (pte_val(pte_mkold(*page_table) ==
> pte_val(pte_mkold(pte)))) {
> ...
> }

> Also the fix would be quite expensive

I assume that this is because pte_mk* expands into set_pte.

Any solution that just invokes pte_val wouldn't have this problem. It would
expand into a nice quick set of bit operations...

Jeff

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