mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
LoongArch: mm: Avoid unnecessary page fault retires on shared memory types
Commitd92725256b("mm: avoid unnecessary page fault retires on shared memory types") modifies do_page_fault() to handle the VM_FAULT_ COMPLETED case, but forget to change for LoongArch, so fix it as other architectures does. Fixes:d92725256b("mm: avoid unnecessary page fault retires on shared memory types") Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
parent
720dc7ab25
commit
b83699ea1e
|
|
@ -216,6 +216,10 @@ static void __kprobes __do_page_fault(struct pt_regs *regs,
|
|||
return;
|
||||
}
|
||||
|
||||
/* The fault is fully completed (including releasing mmap lock) */
|
||||
if (fault & VM_FAULT_COMPLETED)
|
||||
return;
|
||||
|
||||
if (unlikely(fault & VM_FAULT_RETRY)) {
|
||||
flags |= FAULT_FLAG_TRIED;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user