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

2020-05-28 Thread maobibo
On 05/29/2020 03:23 AM, Andrew Morton wrote: > On Wed, 27 May 2020 10:25:18 +0800 Bibo Mao wrote: > >> If two threads concurrently fault at the same page, the thread that >> won the race updates the PTE and its local TLB. For now, the other >> thread gives up, simply does nothing, and

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

2020-05-28 Thread Andrew Morton
On Wed, 27 May 2020 10:25:18 +0800 Bibo Mao wrote: > If two threads concurrently fault at the same page, 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

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

2020-05-26 Thread Bibo Mao
If two threads concurrently fault at the same page, 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