From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: "David S. Miller" <davem@redhat.com>,
trond.myklebust@fys.uio.no, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.5.27 fix potential spinlocking race.
Date: 24 Jul 2002 15:05:59 +0200 [thread overview]
Message-ID: <shsbs8xtgw8.fsf@charged.uio.no> (raw)
In-Reply-To: <Pine.LNX.4.44.0207231922020.6943-100000@home.transmeta.com>
>>>>> " " == Linus Torvalds <torvalds@transmeta.com> writes:
> Trond noticed that kfree_skb() can be called from a _non_ bh
> context, ie process context. So it needs to protect itself
> against other bh's on this CPU (which it wouldn't need to do if
> it was only called from a bh context).
> So it's exactly your "better context" that is at stake here.
Precisely. Not coming from a computer science background, the jargon
sometimes gets the better of me ;-)
I was playing around with ip_build_xmit_slow() looking at alternatives
for fixing the MSG_DONTWAIT fragmentation bug mentioned on this list a
couple of weeks ago, when I noticed that it can call kfree_skb() from
a process context. This again means that write_space() can get called
without being wrapped in a local_bh_disable()/local_bh_enable() -
style protection against softirqs.
Cheers,
Trond
prev parent reply other threads:[~2002-07-24 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-23 20:34 [PATCH] 2.5.27 fix potential spinlocking race Trond Myklebust
2002-07-24 2:09 ` David S. Miller
2002-07-24 2:24 ` Linus Torvalds
2002-07-24 13:05 ` Trond Myklebust [this message]
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=shsbs8xtgw8.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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