From: Andrea Arcangeli <andrea@suse.de>
To: kuznet@ms2.inr.ac.ru
Cc: davem@redhat.com, ralf@nyren.net, linux-kernel@vger.kernel.org
Subject: Re: 2.4.4: Kernel crash, possibly tcp related
Date: Tue, 1 May 2001 19:32:25 +0200 [thread overview]
Message-ID: <20010501193225.D31373@athlon.random> (raw)
In-Reply-To: <20010501190942.B31373@athlon.random> <200105011725.VAA00484@ms2.inr.ac.ru>
In-Reply-To: <200105011725.VAA00484@ms2.inr.ac.ru>; from kuznet@ms2.inr.ac.ru on Tue, May 01, 2001 at 09:25:43PM +0400
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
next prev parent reply other threads:[~2001-05-01 17:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-29 14:29 2.4.4: Kernel crash, possibly tcp related Ralf Nyren
2001-04-30 5:10 ` David S. Miller
2001-04-30 6:42 ` J Sloan
[not found] ` <3AED0A7A.7263E27B@uow.edu.au>
2001-04-30 6:58 ` David S. Miller
2001-04-30 14:41 ` Ralf Nyren
2001-04-30 16:46 ` Andrea Arcangeli
2001-04-30 17:22 ` Ingo Oeser
2001-04-30 17:00 ` kuznet
2001-05-01 10:47 ` Andrea Arcangeli
2001-05-01 16:44 ` kuznet
2001-05-01 17:09 ` Andrea Arcangeli
2001-05-01 17:25 ` kuznet
2001-05-01 17:32 ` Andrea Arcangeli [this message]
2001-05-01 18:10 ` kuznet
2001-05-01 23:08 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010501193225.D31373@athlon.random \
--to=andrea@suse.de \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=ralf@nyren.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox