]> git.baikalelectronics.ru Git - kernel.git/commit
inet: add a schedule point in inet_twsk_purge()
authorEric Dumazet <edumazet@google.com>
Thu, 19 Mar 2015 00:40:51 +0000 (17:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2015 02:38:13 +0000 (22:38 -0400)
commit59f5169b3bfe2c045822f27f641f7afaa6bf1ee5
tree768a37f5be81bf3dd1f9453460bb740df122320f
parentb2c43f9b1afb439352b06a5c00e452901e7bbd7d
inet: add a schedule point in inet_twsk_purge()

On a large hash table, we can easily spend seconds to
walk over all entries. Add a cond_resched() to yield
cpu if necessary.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_timewait_sock.c