diff options
| author | David Rientjes <[email protected]> | 2017-09-08 23:13:41 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-09-09 01:26:47 +0000 |
| commit | 14038302944a1ceda62a104c137d24a62604d98e (patch) | |
| tree | 94ad493be1d804f812c5fb0729de9afcb8c1d7a5 /lib/string.c | |
| parent | proc: uninline proc_create() (diff) | |
| download | kernel-14038302944a1ceda62a104c137d24a62604d98e.tar.gz kernel-14038302944a1ceda62a104c137d24a62604d98e.zip | |
fs, proc: unconditional cond_resched when reading smaps
If there are large numbers of hugepages to iterate while reading
/proc/pid/smaps, the page walk never does cond_resched(). On archs
without split pmd locks, there can be significant and observable
contention on mm->page_table_lock which cause lengthy delays without
rescheduling.
Always reschedule in smaps_pte_range() if necessary since the pagewalk
iteration can be expensive.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: David Rientjes <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
