From: Andrew Morton <akpm@zip.com.au>
To: Crutcher Dunnavant <crutcher@datastacks.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: printk while interrupts are disabled
Date: Tue, 02 Oct 2001 10:09:48 -0700 [thread overview]
Message-ID: <3BB9F4DC.423EC6B7@zip.com.au> (raw)
In-Reply-To: <3BB9A6F4.6BDDAA81@berlin.de>, <3BB9A6F4.6BDDAA81@berlin.de>; from n.roos@berlin.de on Tue, Oct 02, 2001 at 01:37:24PM +0200 <20011002102210.B1630@mueller.datastacks.com>
Crutcher Dunnavant wrote:
>
> ++ 02/10/01 13:37 +0200 - Norbert Roos:
> > Hello!
> >
> > Simple question: Do printk()s get printed while interrupts are disabled
> > (after cli)?
>
> They get stuffed into a buffer to be printed later. It is possible to
> overflow that buffer, and lose some of your printk messages.
Not quite - a printk from cli() or hardirq context will normally
come out immediately. The only time the deferred buffering
thing happens is if the console semaphore is found to be already held on
entry to printk(). ie: there is already a printk in progress on another CPU
or on this CPU in non-interrupt context.
The buffered printk output will be printed by the current console-sem
owner before it releases the semaphore.
prev parent reply other threads:[~2001-10-02 17:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 11:37 printk while interrupts are disabled Norbert Roos
2001-10-02 14:22 ` Crutcher Dunnavant
2001-10-02 14:33 ` Tim Waugh
2001-10-02 17:09 ` Andrew Morton [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=3BB9F4DC.423EC6B7@zip.com.au \
--to=akpm@zip.com.au \
--cc=crutcher@datastacks.com \
--cc=linux-kernel@vger.kernel.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