diff --git a/mm/khugepaged.c b/mm/khugepaged.c index ac575d64340b0eb962270a8c3864d1de6d980845..ff0dbf780ed382d95ecc053e8be43e0de5645d41 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -1816,6 +1816,8 @@ static void khugepaged_do_scan(void) barrier(); /* write khugepaged_pages_to_scan to local stack */ + lru_add_drain_all(); + while (progress < pages) { if (!khugepaged_prealloc_page(&hpage, &wait)) break;