Messages in this thread |  | | Date | Tue, 1 May 2001 19:32:25 +0200 | From | Andrea Arcangeli <> | Subject | Re: 2.4.4: Kernel crash, possibly tcp related |
| |
On Tue, May 01, 2001 at 09:25:43PM +0400, kuznet@ms2.inr.ac.ru wrote: > Hello! > > > zero and we are running in such slow path, it is obvious the send_head > > _was_ NULL when we entered the critical section, so it's perfectly fine > > It is not only not obvious, it is not true almost always. > On normally working tcp send_head is almost never NULL, > it is NULL only when application is so slow that is not able > to saturate pipe. If you do not believe my word, add printk checking this. 8)
Note: I said: ".. if send_head points to skb and skb->len is ^^^^^^^^^^^^^^^^^^^^^^^^^^ zero and we are running in such slow path ..".
If send_head doesn't point to skb then it is before it (and it cannot advance under us of course because we hold the sock lock) and so in such case we didn't clobbered the send_head at all in skb_entail, and so we don't need to touch send_head in order to undo (we only need to unlink).
See?
Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |