Re: [PATCH v4] mm: Avoid unnecessary page fault retires on shared memory types

From: Michael Ellerman
Date: Mon May 30 2022 - 00:04:49 EST


Peter Xu <peterx@xxxxxxxxxx> writes:
> I observed that for each of the shared file-backed page faults, we're very
> likely to retry one more time for the 1st write fault upon no page. It's
> because we'll need to release the mmap lock for dirty rate limit purpose
> with balance_dirty_pages_ratelimited() (in fault_dirty_shared_page()).
>
...

> arch/powerpc/mm/copro_fault.c | 5 +++++
> arch/powerpc/mm/fault.c | 5 +++++

Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> (powerpc)

cheers