summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-03-15 01:40:00 +0300
committerDavid S. Miller <davem@davemloft.net>2016-03-15 02:38:09 +0300
commitacffb584cda7069b0c2c83045503ccd07516a891 (patch)
tree342e4e51d76076603adba31d93313f436cf67709 /kernel/sysctl_binary.c
parente3ebd894f084255fde19116955ba7054858ff5d6 (diff)
downloadlinux-acffb584cda7069b0c2c83045503ccd07516a891.tar.xz
net: diag: add a scheduling point in inet_diag_dump_icsk()
On loaded TCP servers, looking at millions of sockets can hold cpu for many seconds, if the lookup condition is very narrow. (eg : ss dst 1.2.3.4 ) Better add a cond_resched() to allow other processes to access the cpu. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions