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
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