From: Jeff Moyer <jmoyer@redhat.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: mpm@selenic.com, linux-kernel@vger.kernel.org
Subject: Re: netpoll trapped question
Date: Wed, 8 Sep 2004 07:54:57 -0400 [thread overview]
Message-ID: <16702.62225.57927.948523@segfault.boston.redhat.com> (raw)
In-Reply-To: <E1C4xuo-0005zw-00@gondolin.me.apana.org.au>
==> Regarding Re: netpoll trapped question; Herbert Xu <herbert@gondor.apana.org.au> adds:
herbert> Herbert Xu <herbert@gondor.apana.org.au> wrote:
>> Jeff Moyer <jmoyer@redhat.com> wrote:
>>>
mpm> Yes, true. But we're still in trouble if we have nic irq handler ->
mpm> take private lock -> printk -> netconsole -> nic irq handler -> take
mpm> private lock. See?
>>> Okay, so that one has to be addressed on a per-driver basis. There's
>>> no way for us to detect that situation. And how do drivers address
>>> this? Simply don't printk inside the lock? I think that's reasonable.
>> Why not queue the message whenever you're in IRQ context, and only print
>> when you are not?
This question has been answered before. We don't want to defer the output
of say an oops or panic message, since we may never get back to process
context.
herbert> Actually how can this happen at all? The IRQ handler should've
herbert> disabled local IRQs which prevents the second handler from
herbert> occuring.
The netpoll infrastructure calls into the device's netpoll routine. This
will, in turn, call the interrupt routine for the device.
-Jeff
prev parent reply other threads:[~2004-09-08 11:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 17:10 Jeff Moyer
2004-09-06 21:35 ` Matt Mackall
2004-09-07 16:33 ` Jeff Moyer
2004-09-07 16:50 ` Matt Mackall
2004-09-07 16:53 ` Jeff Moyer
2004-09-07 16:59 ` Matt Mackall
2004-09-07 17:10 ` Jeff Moyer
2004-09-07 17:22 ` Matt Mackall
2004-09-08 8:22 ` Herbert Xu
2004-09-08 8:34 ` Herbert Xu
2004-09-08 11:54 ` Jeff Moyer [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=16702.62225.57927.948523@segfault.boston.redhat.com \
--to=jmoyer@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.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
all inboxes | Powered by JetHome®