Hi Peter, On Sat, Jun 27, 2020 at 1:36 AM Peter Xu <peterx@xxxxxxxxxx> wrote: > Use the general page fault accounting by passing regs into handle_mm_fault(). > It naturally solve the issue of multiple page fault accounting when page fault > retry happened. I sent a patch to fix up riscv page fault accounting some days ago: http://lists.infradead.org/pipermail/linux-riscv/2020-June/000775.html However, your fix is obviously even better. For the generic and riscv parts: Reviewed-by: Pekka Enberg <penberg@xxxxxxxxxx> - Pekka