* [merged] mm-mempolicy-skip-non-migratable-vmas-when-setting-mpol_mf_lazy.patch removed from -mm tree
@ 2016-01-19 20:14 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-01-19 20:14 UTC (permalink / raw)
To: liangchen.linux, andi, gavin.guo, mgorman, n-horiguchi, riel,
rientjes, vbabka, mm-commits
The patch titled
Subject: mm: mempolicy: skip non-migratable VMAs when setting MPOL_MF_LAZY
has been removed from the -mm tree. Its filename was
mm-mempolicy-skip-non-migratable-vmas-when-setting-mpol_mf_lazy.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Liang Chen <liangchen.linux@gmail.com>
Subject: mm: mempolicy: skip non-migratable VMAs when setting MPOL_MF_LAZY
MPOL_MF_LAZY is not visible from userspace since a720094ded8c ("mm:
mempolicy: Hide MPOL_NOOP and MPOL_MF_LAZY from userspace for now"), but
it should still skip non-migratable VMAs such as VM_IO, VM_PFNMAP, and
VM_HUGETLB VMAs, and avoid useless overhead of minor faults.
Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Signed-off-by: Gavin Guo <gavin.guo@canonical.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mempolicy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN mm/mempolicy.c~mm-mempolicy-skip-non-migratable-vmas-when-setting-mpol_mf_lazy mm/mempolicy.c
--- a/mm/mempolicy.c~mm-mempolicy-skip-non-migratable-vmas-when-setting-mpol_mf_lazy
+++ a/mm/mempolicy.c
@@ -644,7 +644,8 @@ static int queue_pages_test_walk(unsigne
if (flags & MPOL_MF_LAZY) {
/* Similar to task_numa_work, skip inaccessible VMAs */
- if (vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))
+ if (vma_migratable(vma) &&
+ vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))
change_prot_numa(vma, start, endvma);
return 1;
}
_
Patches currently in -mm which might be from liangchen.linux@gmail.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-19 20:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 20:14 [merged] mm-mempolicy-skip-non-migratable-vmas-when-setting-mpol_mf_lazy.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.