From: Harald Welte <laforge@netfilter.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@oss.sgi.com, netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH 2.6] fix deadlock with ip_queue and tcp local input path
Date: Fri, 27 May 2005 09:37:58 +0200 [thread overview]
Message-ID: <20050527073758.GP13114@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <E1DbQ49-00027X-00@gondolin.me.apana.org.au>
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
On Fri, May 27, 2005 at 07:38:57AM +1000, Herbert Xu wrote:
> Harald Welte <laforge@netfilter.org> wrote:
> >
> > The patch below adds an additional queue for ip_queue verdicts. They
> > come up from userspace, are appended to a queue which is then processed
> > by a tasklet. The tasklet itself runs in softirq context, so when timer
> > hardirq leaves, no tcp_delack_timer() will be executed until
> > nf_reinject() has finished.
>
> This seems to be overly complicated if all you want is to do this in
> softirq context. What's wrong with simply alling local_bh_disable?
Patrick just pointed this out, too. I wasn't sure whether
local_bh_disable() would make the context really look like softirq in
every way. If yes, it would certainly solve the problem, because
in_interrupt() at hardirq-exit would be true and therefore the timer
softirq not scheduled immediately.
I'll have Astaro test this variant.
--
- Harald Welte <laforge@netfilter.org> http://netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-27 7:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-26 14:24 [PATCH 2.6] fix deadlock with ip_queue and tcp local input path Harald Welte
2005-05-26 20:52 ` David S. Miller
2005-05-26 20:58 ` Harald Welte
2005-05-26 21:01 ` David S. Miller
2005-05-26 21:38 ` Herbert Xu
2005-05-27 7:37 ` Harald Welte [this message]
2005-05-30 18:06 ` Harald Welte
2005-05-30 22:26 ` 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=20050527073758.GP13114@sunbeam.de.gnumonks.org \
--to=laforge@netfilter.org \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.com \
--cc=netfilter-devel@lists.netfilter.org \
/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