aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2017-01-24 15:18:07 -0800
committerLinus Torvalds <[email protected]>2017-01-24 16:26:14 -0800
commit3ba4bceef23206349d4130ddf140819b365de7c8 (patch)
tree4189bc94f2e769788c9f9859e7a463cf2a27ad0c /lib/test-string_helpers.c
parent424f6c4818bbf1b8ccf58aa012ecc19c0bb9b446 (diff)
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. [[email protected]: coding style fix] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions