Re: [PATCH] mm, thp: fix leaking mapped pte in __collapse_huge_page_swapin()

From: Andrea Arcangeli
Date: Wed Sep 07 2016 - 08:41:13 EST


On Fri, Sep 02, 2016 at 03:44:36PM +0300, Ebru Akagunduz wrote:
> Currently, khugepaged does not let swapin, if there is no
> enough young pages in a THP. The problem is when a THP does
> not have enough young page, khugepaged leaks mapped ptes.
>
> This patch prohibits leaking mapped ptes.
>
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@xxxxxxxxx>
> Suggested-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>
> ---
> mm/khugepaged.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>