Re: mm/memory.c: Add update local tlb for smp race

2020-05-17 Thread maobibo
On 05/16/2020 05:34 PM, maobibo wrote: > > > On 05/15/2020 09:50 PM, David Hildenbrand wrote: >> On 14.05.20 08:50, Bibo Mao wrote: >>> If there are two threads hitting page fault at the address, one >>> thread updates pte entry and local tlb, the other thread can update >>> local tlb also, ra

Re: mm/memory.c: Add update local tlb for smp race

2020-05-16 Thread maobibo
On 05/15/2020 09:50 PM, David Hildenbrand wrote: > On 14.05.20 08:50, Bibo Mao wrote: >> If there are two threads hitting page fault at the address, one >> thread updates pte entry and local tlb, the other thread can update >> local tlb also, rather than give up and let page fault happening >> a

Re: mm/memory.c: Add update local tlb for smp race

2020-05-15 Thread David Hildenbrand
On 14.05.20 08:50, Bibo Mao wrote: > If there are two threads hitting page fault at the address, one > thread updates pte entry and local tlb, the other thread can update > local tlb also, rather than give up and let page fault happening > again. Let me suggest "mm/memory: optimize concurrent pag

mm/memory.c: Add update local tlb for smp race

2020-05-13 Thread Bibo Mao
If there are two threads hitting page fault at the address, one thread updates pte entry and local tlb, the other thread can update local tlb also, rather than give up and let page fault happening again. modified: mm/memory.c Signed-off-by: Bibo Mao --- mm/memory.c | 30 ++