[lkml]   [1998]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Notebooks
   From: Andi Kleen <>
Date: 19 Aug 1998 02:55:53 +0200

(from tcp_send_fin)

/* Socket is locked, keep trying until memory is available. */
do {
skb = sock_wmalloc(sk,
} while (skb == NULL);

It would be better to return ENOMEM after a few iterations, even if it means
that the fin is not send. It is probably too late in the code freeze to fix
it properly now, but I wouldn't be surprised if it leads to more deadlocks
in the future.

It is a the smallest packet TCP can try to allocate, and it is the
most crucial packet to allocate successfully, and it is the one
allocation type in the entire TCP send path which cannot ever fail.

We had to allow it to fail in 2.0.x, and this was a bug, look for the
workaround for the disasterous result it causes in the 2.0.x TCP code,
grep for "don't show this to your mother" in a comment of something
like this.

David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:44    [W:0.060 / U:36.208 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site