Re: [PATCH] mmu notifiers #v7
From: Andrea Arcangeli
Date: Fri Feb 29 2008 - 08:09:30 EST
On Thu, Feb 28, 2008 at 05:03:01PM -0800, Christoph Lameter wrote:
> I thought you wanted to get rid of the sync via pte lock?
Sure. _notify is happening inside the pt lock by coincidence, to
reduce the changes to mm/* as long as the mmu notifiers aren't
sleep capable.
> What changes to do_wp_page do you envision?
Converting it to invalidate_range_begin/end.
> What is the trouble with the current do_wp_page modifications? There is
> no need for invalidate_page() there so far. invalidate_range() does the
> trick there.
No trouble, it's just that I didn't want to mangle over the logic of
do_wp_page unless it was strictly required, the patch has to be
obviously safe. You need to keep that bit of your patch to make the
mmu notifiers sleepable.
--
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/