summaryrefslogtreecommitdiffstats
path: root/lib/zstd
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2020-05-27 10:25:18 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-05-27 13:06:09 +0200
commit7df676974359f927056b882e10a5b24d2033169b (patch)
treed8f0fc569f5d1f3003d35dd9788ab58bb8380553 /lib/zstd
parent4dd7683ea1d66975fb258d02f2b74a7e9a32b131 (diff)
downloadlinux-7df676974359f927056b882e10a5b24d2033169b.tar.bz2
mm/memory.c: Update local TLB if PTE entry exists
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 handling the fault. Instead of triggering another fault, let's directly update the local TLB of the second thread. Function update_mmu_tlb is used here to update local TLB on the second thread, and it is defined as empty on other arches. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Acked-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'lib/zstd')
0 files changed, 0 insertions, 0 deletions