mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jan Kara <jack@suse.cz>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: lockdep warning after recent cleanup in console code
Date: Wed, 30 Apr 2014 11:12:53 +0300	[thread overview]
Message-ID: <1398845573.23470.3.camel@smile.fi.intel.com> (raw)
In-Reply-To: <20140429210750.GE29634@quack.suse.cz>

On Tue, 2014-04-29 at 23:07 +0200, Jan Kara wrote:
> On Tue 29-04-14 11:38:04, Andy Shevchenko wrote:
> > On Mon, 2014-04-28 at 21:24 +0200, Jan Kara wrote:
> > > On Mon 28-04-14 14:14:39, Steven Rostedt wrote:
> > > > On Mon, 28 Apr 2014 19:51:39 +0200
> > > > Jan Kara <jack@suse.cz> wrote:
> > > > 
> > > > > On Mon 28-04-14 13:43:31, Steven Rostedt wrote:
> > > > > > Things have changed with regard to printk() in linux-next. Now it
> > > > > > appears that lockdep is going haywire over it. I don't understand the
> > > > > > exact reason for the lockdep_off() and lockdep_on() logic that is in
> > > > > > printk(), but it obviously seems to be causing issues with the new
> > > > > > changes.
> > > > > > 
> > > > > > Care to take a look?
> > > > >   The obvious cause is that I moved lockdep_on() somewhat earlier in
> > > > > vprintk_emit() so lockdep now covers more of printk code. And apparently
> > > > > something is wrong there...
> > > > > 
> > > > 
> > > > Exactly, and I rather know *exactly* what is wrong before we just start
> > > > throwing patches at the problem and hope it goes away. That's not how
> > > > to solve a software bug.
> > >   So I had a look and we are missing mutex_release() in
> > > console_trylock_for_printk() if we don't have a console to print to.
> > > Attached patch should fix the problem.
> > 
> > Besides it doesn't apply clearly on top of today's linux-next, it
> > doesn't fix the issue, but modifies it a bit.
>   Sorry, I was too tired and missed conversion of one place. Attached is a
> new version of the patch which also applies cleanly against linux-next.

Either you decide to revert, not apply or leave as is that patch that
prevents to apply clearly, this one seems good.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>


-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


  reply	other threads:[~2014-04-30  8:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28 16:35 Shevchenko, Andriy
2014-04-28 17:43 ` Steven Rostedt
2014-04-28 17:51   ` Jan Kara
2014-04-28 18:14     ` Steven Rostedt
2014-04-28 19:24       ` Jan Kara
2014-04-28 19:36         ` Steven Rostedt
2014-04-28 20:13           ` Jan Kara
2014-04-29  8:38         ` Andy Shevchenko
2014-04-29 21:07           ` Jan Kara
2014-04-30  8:12             ` Andy Shevchenko [this message]
2014-04-28 18:31   ` Peter Zijlstra

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=1398845573.23470.3.camel@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.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

Powered by JetHome