]> git.baikalelectronics.ru Git - kernel.git/commit
net: Disambiguate kernel message
authorArun Sharma <asharma@fb.com>
Mon, 30 Jan 2012 22:16:06 +0000 (14:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2012 19:41:50 +0000 (14:41 -0500)
commit2b7891d45b26e5dcd003d0b6c196bde664069d28
tree8c771a1ef2c93f1ba959709d6ffb4fd56af53699
parentb3786ce5403773d446c47f1f480f3735f342411f
net: Disambiguate kernel message

Some of our machines were reporting:

TCP: too many of orphaned sockets

even when the number of orphaned sockets was well below the
limit.

We print a different message depending on whether we're out
of TCP memory or there are too many orphaned sockets.

Also move the check out of line and cleanup the messages
that were printed.

Signed-off-by: Arun Sharma <asharma@fb.com>
Suggested-by: Mohan Srinivasan <mohan@fb.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: David Miller <davem@davemloft.net>
Cc: Glauber Costa <glommer@parallels.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_timer.c