From: john stultz <johnstul@us.ibm.com>
To: Tilman Schmidt <tilman@imap.cc>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [2.6.18-rc7] printk output delay in syslog wrt dmesg still unfixed
Date: Thu, 21 Sep 2006 16:35:11 -0700 [thread overview]
Message-ID: <1158881711.1134.4.camel@localhost.localdomain> (raw)
In-Reply-To: <45132018.8070501@imap.cc>
On Fri, 2006-09-22 at 01:28 +0200, Tilman Schmidt wrote:
> On 19.09.2006 20:52, john stultz wrote:
> > You might try git-bisect to find the offending patch.
>
> This turned out to be easier than I expected.
> The patch which introduces the problem is:
>
> [a0f1ccfd8d37457a6d8a9e01acebeefcdfcc306e] lockdep: do not recurse in printk
When you've narrow down a patch, be sure to CC the author (in this case
Ingo).
> Reverting that patch makes the problem disappear in 2.6.18, too.
> In fact, it suffices to revert just the last chunk:
>
> @@ -809,8 +815,15 @@ void release_console_sem(void)
> console_may_schedule = 0;
> up(&console_sem);
> spin_unlock_irqrestore(&logbuf_lock, flags);
> - if (wake_klogd && !oops_in_progress && waitqueue_active(&log_wait))
> - wake_up_interruptible(&log_wait);
> + if (wake_klogd && !oops_in_progress && waitqueue_active(&log_wait)) {
> + /*
> + * If we printk from within the lock dependency code,
> + * from within the scheduler code, then do not lock
> + * up due to self-recursion:
> + */
> + if (!lockdep_internal())
> + wake_up_interruptible(&log_wait);
> + }
> }
> EXPORT_SYMBOL(release_console_sem);
Ingo, your thoughts?
thanks
-john
prev parent reply other threads:[~2006-09-21 23:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-16 12:45 Tilman Schmidt
2006-09-19 18:52 ` john stultz
2006-09-20 10:01 ` Tilman Schmidt
2006-09-21 23:28 ` Tilman Schmidt
2006-09-21 23:35 ` john stultz [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=1158881711.1134.4.camel@localhost.localdomain \
--to=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tilman@imap.cc \
/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®