summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorHugh Dickins2016-12-13 01:44:47 +0100
committerLinus Torvalds2016-12-13 03:55:09 +0100
commita66c0410b97c07a5708881198528ce724f7a3226 (patch)
treeb96317b18326a7c565d257d8694777069c8016c0 /mm/huge_memory.c
parentmm: add three more cond_resched() in swapoff (diff)
downloadkernel-qcow2-linux-a66c0410b97c07a5708881198528ce724f7a3226.tar.gz
kernel-qcow2-linux-a66c0410b97c07a5708881198528ce724f7a3226.tar.xz
kernel-qcow2-linux-a66c0410b97c07a5708881198528ce724f7a3226.zip
mm: add cond_resched() in gather_pte_stats()
The other pagetable walks in task_mmu.c have a cond_resched() after walking their ptes: add a cond_resched() in gather_pte_stats() too, for reading /proc/<id>/numa_maps. Only pagemap_pmd_range() has a cond_resched() in its (unusually expensive) pmd_trans_huge case: more should probably be added, but leave them unchanged for now. Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1612052157400.13021@eggly.anvils Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: David Rientjes <rientjes@google.com> Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions