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

2020-05-22 Thread maobibo
On 05/22/2020 03:22 AM, Andrew Morton wrote: > On Thu, 21 May 2020 11:30:35 +0800 Bibo Mao wrote: > >> If two threads concurrently fault at the same address, the thread that >> won the race updates the PTE and its local TLB. For now, the other >> thread gives up, simply does nothing, and conti

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

2020-05-21 Thread Andrew Morton
On Thu, 21 May 2020 11:30:35 +0800 Bibo Mao wrote: > If two threads concurrently fault at the same address, the thread that > won the race updates the PTE and its local TLB. For now, the other > thread gives up, simply does nothing, and continues. > > It could happen that this second thread trig

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

2020-05-20 Thread Bibo Mao
If two threads concurrently fault at the same address, the thread that won the race updates the PTE and its local TLB. For now, the other thread gives up, simply does nothing, and continues. It could happen that this second thread triggers another fault, whereby it only updates its local TLB while