mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Sergey Senozhatsky <sergey.senozhatsky@mail.by>
Cc: Rabin Vincent <rabin@rab.in>, Ingo Molnar <mingo@elte.hu>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: BUG: scheduling while atomic
Date: Mon, 22 Jun 2009 10:04:53 +0100	[thread overview]
Message-ID: <20090622100453.2a1bde3b@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20090620185452.GD3138@localdomain.by>

On Sat, 20 Jun 2009 21:54:52 +0300
Sergey Senozhatsky <sergey.senozhatsky@mail.by> wrote:

> On (06/20/09 23:13), Rabin Vincent wrote:
> > On Fri, Jun 19, 2009 at 09:15:29PM +0300, Sergey Senozhatsky wrote:
> > > Hello.
> > > I see lots of "BUG: scheduling while atomic" with current kernels (started with 2.6.30-git1, 2.6.30 is ok).
> > > For example (2.6.30-git14):
> > 
> > Looks like the net softirq (via ppp) ends up calling tty_throttle(), and
> > this causes problems because of the mutex_lock() added there by
> > 38db8979.  I've cc'd the tty maintainer.

Looks like we caught another naughty. It's not safe to call the
throttle/unthrottle methods from an IRQ path, never really has been as
they can be things like USB drivers that need to send USB messages and
sleep when that happens.

Alan

  reply	other threads:[~2009-06-22  9:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 18:15 Sergey Senozhatsky
2009-06-20 17:43 ` Rabin Vincent
2009-06-20 18:54   ` Sergey Senozhatsky
2009-06-22  9:04     ` Alan Cox [this message]
2009-06-22  9:57     ` Alan Cox
2009-06-22 11:33       ` Sergey Senozhatsky
2009-06-22 12:36         ` Alan Cox
2009-06-22 13:59           ` Sergey Senozhatsky
2009-07-06  7:55           ` Herbert Xu
  -- strict thread matches above, loose matches on Subject: below --
2012-02-13  8:08 Florian Tobias Schandinat
2010-08-27  7:59 Sergey Senozhatsky
2010-08-27 19:02 ` Rafael J. Wysocki
2010-08-28  6:42   ` Pavel Machek
2010-08-30  7:29     ` Sergey Senozhatsky
2010-08-30 10:04     ` Sergey Senozhatsky
2009-06-27 11:10 Michael Guntsche
2009-06-27 13:06 ` Alan Cox
2009-06-27 16:07   ` Michael Guntsche
2009-07-06  7:43     ` Herbert Xu
2009-07-06  8:31       ` Herbert Xu
2009-07-06 15:28         ` Michael Guntsche
2009-07-06 15:32         ` Alan Cox
2009-07-06 17:17           ` Alan Cox
2009-07-06 18:07             ` Michael Guntsche
2009-07-06 18:18               ` Alan Cox
2009-07-06 18:37                 ` Michael Guntsche
2009-07-06 10:00       ` Alan Cox
2006-12-08 15:47 Christian
2006-06-02  9:39 fonseka
2006-06-02 12:37 ` Roger Luethi
2006-06-02 14:07   ` fonseka

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=20090622100453.2a1bde3b@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rabin@rab.in \
    --cc=sergey.senozhatsky@mail.by \
    /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®