Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755667AbZFVJFY (ORCPT ); Mon, 22 Jun 2009 05:05:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753691AbZFVJFN (ORCPT ); Mon, 22 Jun 2009 05:05:13 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:53150 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751002AbZFVJFM (ORCPT ); Mon, 22 Jun 2009 05:05:12 -0400 Date: Mon, 22 Jun 2009 10:04:53 +0100 From: Alan Cox To: Sergey Senozhatsky Cc: Rabin Vincent , Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: BUG: scheduling while atomic Message-ID: <20090622100453.2a1bde3b@lxorguk.ukuu.org.uk> In-Reply-To: <20090620185452.GD3138@localdomain.by> References: <20090619181529.GA3593@localdomain.by> <20090620174320.GA6791@debian> <20090620185452.GD3138@localdomain.by> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1046 Lines: 24 On Sat, 20 Jun 2009 21:54:52 +0300 Sergey Senozhatsky 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/