Revert "BACKPORT: FROMLIST: mm: disable LRU pagevec during the migration temporarily"

This reverts commit 3039d8580c.

Bug: 180018981
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iadadd7f4c7aafa439afd7a1c3e575e5e31602bef
This commit is contained in:
Minchan Kim
2021-03-19 12:34:33 -07:00
committed by Suren Baghdasaryan
parent 9e2790466f
commit 7ed55d7025
5 changed files with 17 additions and 77 deletions

View File

@@ -1326,7 +1326,7 @@ static long do_mbind(unsigned long start, unsigned long len,
if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)) {
lru_cache_disable();
lru_add_drain_all();
}
{
NODEMASK_SCRATCH(scratch);
@@ -1374,8 +1374,6 @@ up_out:
mmap_write_unlock(mm);
mpol_out:
mpol_put(new);
if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL))
lru_cache_enable();
return err;
}