diff options
author | Eric Dumazet <edumazet@google.com> | 2017-01-25 00:18:07 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-25 01:26:14 +0100 |
commit | 3ba4bceef23206349d4130ddf140819b365de7c8 (patch) | |
tree | 4189bc94f2e769788c9f9859e7a463cf2a27ad0c /mm | |
parent | mm: alloc_contig: re-allow CMA to compact FS pages (diff) | |
download | linux-3ba4bceef23206349d4130ddf140819b365de7c8.tar.xz linux-3ba4bceef23206349d4130ddf140819b365de7c8.zip |
proc: add a schedule point in proc_pid_readdir()
We have seen proc_pid_readdir() invocations holding cpu for more than 50
ms. Add a cond_resched() to be gentle with other tasks.
[akpm@linux-foundation.org: coding style fix]
Link: http://lkml.kernel.org/r/1484238380.15816.42.camel@edumazet-glaptop3.roam.corp.google.com
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions