Re: [Patch] mm/ksm.c is doing an unneeded _notify in write_protect_page.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 11, 2010 at 06:01:59PM +0200, Izik Eidus wrote:
> On Thu, 11 Mar 2010 09:54:22 -0600
> Robin Holt <holt@xxxxxxx> wrote:
> 
> > 
> > ksm.c's write_protect_page implements a lockless means of verifying a
> > page does not have any users of the page which are not accounted for via
> > other kernel tracking means.  It does this by removing the writable pte
> > with TLB flushes, checking the page_count against the total known users,
> > and then using set_pte_at_notify to make it a read-only entry.
> > 
> > An unneeded mmu_notifier callout is made in the case where the known
> > users does not match the page_count.  In that event, we are inserting
> > the identical pte and there is no need for the set_pte_at_notify, but
> > rather the simpler set_pte_at suffices.
> > 
> > Signed-off-by: Robin Holt <holt@xxxxxxx>
> > To: Izik Eidus <ieidus@xxxxxxxxxx>
> > Cc: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx>
> > Cc: Chris Wright <chrisw@xxxxxxxxxx>
> > Cc: linux-mm@xxxxxxxxx
> 
> Acked-by: Izik Eidus <ieidus@xxxxxxxxxx>

Ack too. I misunderstood what you were talking about before, patch
makes it clear now ;).

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]