Re: [PATCH 2/3] mm/memory.c: Update local TLB if PTE entry exists

2020-05-16 Thread maobibo
On 05/16/2020 04:40 AM, Andrew Morton wrote: > On Fri, 15 May 2020 12:10:08 +0800 Bibo Mao wrote: > >> If there are two threads hitting page fault at the same page, >> one thread updates PTE entry and local TLB, the other can >> update local tlb also, rather than give up and do page fault >>

Re: [PATCH 2/3] mm/memory.c: Update local TLB if PTE entry exists

2020-05-15 Thread Andrew Morton
On Fri, 15 May 2020 12:10:08 +0800 Bibo Mao wrote: > If there are two threads hitting page fault at the same page, > one thread updates PTE entry and local TLB, the other can > update local tlb also, rather than give up and do page fault > again. > > ... > > --- a/mm/memory.c > +++ b/mm/memory.c

[PATCH 2/3] mm/memory.c: Update local TLB if PTE entry exists

2020-05-14 Thread Bibo Mao
If there are two threads hitting page fault at the same page, one thread updates PTE entry and local TLB, the other can update local tlb also, rather than give up and do page fault again. --- Change in V2: - separate tlb update and add pte readable privilege into two patches Signed-off-by: Bibo