Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction

From: Jeremy Fitzhardinge
Date: Wed Jun 18 2008 - 20:00:14 EST


Benjamin Herrenschmidt wrote:
On Mon, 2008-06-16 at 04:30 -0700, Jeremy Fitzhardinge wrote:
The only current user of this interface is mprotect

Do you plan to use it with fork ultimately ?

Good point, I'd overlooked that. I guess that means using it in ptep_set_wrprotect().

At present the x86 ptep_set_wrprotect() just uses clear_bit on the pte, which is a locked cycle. Is that significantly cheaper than an xchg + set? (Same number of locked operations...)

J
--
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/