]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use update_mmu_tlb() on the second thread
authorQi Zheng <zhengqi.arch@bytedance.com>
Thu, 29 Sep 2022 11:23:17 +0000 (19:23 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Oct 2022 01:51:50 +0000 (18:51 -0700)
commit564b448ea8540078d81c27e499891a0325a9e5af
tree14e2a35452ed18698b8fdc986c89c22e4a4a2c53
parent044235be58f1b938439d6c7ee71a1a9f2988511f
mm: use update_mmu_tlb() on the second thread

As message in commit b797c6a08afd ("mm/memory.c: Update local TLB if PTE
entry exists") said, we should update local TLB only on the second thread.
So in the do_anonymous_page() here, we should use update_mmu_tlb()
instead of update_mmu_cache() on the second thread.

As David pointed out, this is a performance improvement, not a
correctness fix.

Link: https://lkml.kernel.org/r/20220929112318.32393-2-zhengqi.arch@bytedance.com
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Chris Zankel <chris@zankel.net>
Cc: Huacai Chen <chenhuacai@loongson.cn>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c