linux-stable/arch/mips/include
Bibo Mao 2292d9691c hugetlb: clear huge pte during flush function on mips platform
[ Upstream commit 33ae8f801a ]

If multiple threads are accessing the same huge page at the same
time, hugetlb_cow will be called if one thread write the COW huge
page. And function huge_ptep_clear_flush is called to notify other
threads to clear the huge pte tlb entry. The other threads clear
the huge pte tlb entry and reload it from page table, the reload
huge pte entry may be old.

This patch fixes this issue on mips platform, and it clears huge
pte entry before notifying other threads to flush current huge
page entry, it is similar with other architectures.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-19 09:44:37 +02:00
..
asm hugetlb: clear huge pte during flush function on mips platform 2021-07-19 09:44:37 +02:00
uapi/asm MIPS: Retire kvm paravirt 2020-07-24 10:53:23 +02:00