Re: [PATCH net] net: diag: add a scheduling point in inet_diag_dump_icsk()

2016-03-14 Thread David Miller
From: Eric Dumazet Date: Mon, 14 Mar 2016 15:40:00 -0700 > From: Eric Dumazet > > 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

[PATCH net] net: diag: add a scheduling point in inet_diag_dump_icsk()

2016-03-14 Thread Eric Dumazet
From: Eric Dumazet 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 --- net/ipv4/inet_diag.c